Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Installing and can't create filesystems with
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alphuris
n00b
n00b


Joined: 24 Sep 2006
Posts: 9
Location: San Francisco, Ca, USA

PostPosted: Sun Jul 05, 2009 11:26 pm    Post subject: [solved] Installing and can't create filesystems with Reply with quote

At the point in the handbook to apply file systems as I was already able to create the partition table on /dev/sdb

Now when running /mke2fs -j /dev/sdb1 I get "/dev/sdb1 is apparently in use by the system; will not make a filesystem here!" I get a very similar message by attempting it with gparted. Drive isn't mounted, df doesn't show it anywhere and I can't seem to figure out what's holding it from formatting.

Thanks.


Last edited by alphuris on Wed Jul 08, 2009 6:07 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7623
Location: Goose Creek SC

PostPosted: Mon Jul 06, 2009 12:37 am    Post subject: Reply with quote

run
Code:
umount /dev/sdb1
see what error if any appears
and/or start gparted
delete in order /dev/sdb3, /dev/sdb2, /dev sdb1 including unmounting them if/when that complaint is raised
then (in gparted) make /dev/sdb1 as an ext2 fs
then (in gparted) make /dev/sdb2 as swap
then (in gparted) make /dev/sdb3 as an ext3 fs

{gparted creates a default ext2fs when it creates a partition, these partition/file systems are then being automounted as /media/disc_ (_ signifies space then -1 then -2 etc}
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Mon Jul 06, 2009 1:25 pm    Post subject: Reply with quote

Hi,

Was it an ntfs partition ?

Regards,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
alphuris
n00b
n00b


Joined: 24 Sep 2006
Posts: 9
Location: San Francisco, Ca, USA

PostPosted: Mon Jul 06, 2009 2:35 pm    Post subject: Reply with quote

Code:
umount /dev/sdb1
umount:/dev/sdb1: not mounted


Deleted the partitions in gparted as suggested, then re-allocated them. It gave the same error when attempting to apply the filesystem.

Code:
mke2fs 4.41.6 (30-May-2009)
/dev/sdb1 is apparently in use by the system; Will not make a filesystem here!


From the gparted_details.htm

Code:
GParted 0.4.5

Libparted 1.8.8
Format /dev/sdb1 as ext2  00:00:00    ( ERROR )
        
calibrate /dev/sdb1  00:00:00    ( SUCCESS )
        
path: /dev/sdb1
start: 63
end: 68099534
size: 68099472 (32.47 GiB)
set partition type on /dev/sdb1  00:00:00    ( SUCCESS )
        
new partition type: ext2
create new ext2 file system  00:00:00    ( ERROR )
        
mkfs.ext2 -L "" /dev/sdb1
        
mke2fs 1.41.6 (30-May-2009)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!


umount still tells me they're not mounted.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7623
Location: Goose Creek SC

PostPosted: Mon Jul 06, 2009 2:43 pm    Post subject: Reply with quote

boot cd, run
Code:
fdisk -l
post results here
is yours a simple setup of two internal hard drives or is there something more complicated?
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Tue Jul 07, 2009 11:11 am    Post subject: Reply with quote

Hi,

No answer to my question ? (is it an ntfs partition)

Regards,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
alphuris
n00b
n00b


Joined: 24 Sep 2006
Posts: 9
Location: San Francisco, Ca, USA

PostPosted: Tue Jul 07, 2009 2:23 pm    Post subject: Reply with quote

Code:
root@sysresccd /root % fdisk -l

Disk /dev/sda: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1642c4cf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4499    36138186    7  HPFS/NTFS

Disk /dev/sdb: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00100058

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        4239    34049736   83  Linux

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44fdfe06

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       60801   488384001    c  W95 FAT32 (LBA)

Disk /dev/dm-0: 74.0 GB, 74039033856 bytes
255 heads, 63 sectors/track, 9001 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1642c4cf

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1   *           1        4499    36138186    7  HPFS/NTFS

Disk /dev/dm-1: 37.0 GB, 37005502464 bytes
255 heads, 63 sectors/track, 4498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x69205244

This doesn't look like a partition table
Probably you selected the wrong device.

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-1p1   ?       13578      119522   850995205   72  Unknown
Partition 1 does not end on cylinder boundary.
/dev/dm-1p2   ?       45382       79243   271987362   74  Unknown
Partition 2 does not end on cylinder boundary.
/dev/dm-1p3   ?       10499       10499           0   65  Novell Netware 386
Partition 3 does not end on cylinder boundary.
/dev/dm-1p4          167628      167631       25817+   0  Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order


I just have two 37Gig raptors installed as two separate drives. Trying to get the second /dev/sdb to be the gentoo partition.

Attempted to re-partition with fdisk and got this when trying to write

[code]Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.[/quote]
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jul 07, 2009 2:42 pm    Post subject: Reply with quote

alphuris wrote:
I just have two 37Gig raptors installed as two separate drives. Trying to get the second /dev/sdb to be the gentoo partition.

It looks like device-mapper has hijacked /dev/sdb and made it "busy".

Try booting the CD with device-mapper disabled.
Back to top
View user's profile Send private message
alphuris
n00b
n00b


Joined: 24 Sep 2006
Posts: 9
Location: San Francisco, Ca, USA

PostPosted: Wed Jul 08, 2009 6:07 am    Post subject: Reply with quote

Well, couldn't figure out how to boot it without dev mapper, so I just decided to use another live CD.

Auditor seems to work fine ;)
Back to top
View user's profile Send private message
Jester0311
n00b
n00b


Joined: 23 Dec 2015
Posts: 1

PostPosted: Wed Dec 23, 2015 2:34 pm    Post subject: Boot Options Reply with quote

I know this is an old post but i ran into this issue when doing a fresh install and putting my home partition on separate drive, just for completeness it was the device mapper as cyrillic had mentioned and corrected this by setting the boot flag nodmraid. I am using the gentoo live dvd. Just wanted to add this in case anyone else came looking.

On the live dvd which has a bootloader select the kernel to boot and press Tab, append nodmraid to the end of the boot parameters and your good to go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum