I have a FS on a device /dev/sdb. The file system was created without any partition tables. I have since created a partition on this device so there is now a valid partition table. In /etc/fstab, i can mount it if i mount it to /dev/sdb... if i mount to the created partition /dev/sdb1 i get the following error message:
mount: wrong fs type, bad option, bad superblock on /dev/sdb, missing code page or other error
Basically what i want is to make the filesystem from "container" /dev/sdb to /dev/sdb1, because once it is a partition i can resize it. So far i have created the partition, but it is only one partition that occupies the entire drive (250 GB).. i want to repartition that to 80 GB and 2 other partitions.
I have however not been able to find where this is specified..
Looking at the MBR i see that the first 446 bytes are for bootcode, followed by 64 bits of partition table followed by a 2 byte signature.
The 64 bytes are 4 x 16 bytes. one for each primary / extended partition. These 16 bytes break down as follows:
byte 0 = Boot incidator (0x80 = active)
byte 1-3 = Starting CHS values
byte 4 = partition type descriptior
byte 5-7 = Ending CHS values
byte 8-11 = starting sector
byte 12-15 = partition size (in sectors)
This is all pretty straightforward and its not specified here. Perhaps in the first 446 bytes? though i doubt that.
Looking at the file system itself with dump2efs and debugfs i've not been able to find any hints either. My questions.. where can i see / change this? in the higher VFS layer? Where is data from the FS stored on the drive? surely somewhere it must say.. hey i belong to this and this partition / device?
Start Free Trial