Computing.Net > Forums > Linux > BSD disklabel and mounting

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

BSD disklabel and mounting

Reply to Message Icon

Name: Godgory
Date: August 13, 2006 at 06:51:45 Pacific
OS: Linux 2.6.17.8
CPU/Ram: barton 2600+/512DDR
Product: me
Comment:

Hi, this is probably just another boring quiestion, but I still didn't manage to handle it despite google searches. Here it goes:

root@hossu:~# fdisk /dev/hda

The number of cylinders for this disk is set to 14946.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 637 5116671 a5 FreeBSD
/dev/hda2 638 1015 3036285 83 Linux
/dev/hda3 * 1016 1879 6940080 7 HPFS/NTFS
/dev/hda4 1880 14946 104960677+ f W95 Ext'd (LBA)
/dev/hda5 1880 1942 506016 82 Linux swap
/dev/hda6 1943 5712 30282493+ 83 Linux
/dev/hda7 5713 13615 63480816 83 Linux
/dev/hda8 13616 14946 10691226 7 HPFS/NTFS

Command (m for help): b
Reading disklabel of /dev/hda1 at sector 64.

BSD disklabel command (m for help): p

8 partitions:
# start end size fstype [fsize bsize cpg]
a: 1* 561* 560* 4.2BSD 2048 16384 28552
b: 561* 637 76* swap
c: 1* 637 636* unused 0 0

Now, internet searches told me to do this:
root@hossu:~# mount -t ufs /dev/hda9 /mnt/freebsd -o ufstype=42bsd,ro
mount: wrong fs type, bad option, bad superblock on /dev/hda9,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I also tried to # mount -t ufs /dev/hda9 /mnt/freebsd -o ufstype=42bsd -ro but the same is printed out.

Now: did I specify correctly the bsd partition? did I specify correctly the ufs type used? Why doesn't it work? And most important: How do I get it to work?

Thanks, Alex.



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: August 14, 2006 at 02:57:24 Pacific
Reply:

Should it not be 44bsd rather than 42bsd? Also try passing the options before stating the device and mount point, eg:

# mount -t ufs -o ufstype=44bsd,ro /dev/hda9 /mnt/freebsd

Also check that you have the relevent file system and partition type support enabled in your kernel.


0

Response Number 2
Name: Godgory
Date: August 14, 2006 at 11:44:30 Pacific
Reply:

Thanks for your answer.

Yes, I have bsd disklabels and ufs activated in the kernel:
root@hossu:/home/alex# cat /proc/partitions
major minor #blocks name

3 0 120060864 hda
3 1 5116671 hda1
3 2 3036285 hda2
3 3 6940080 hda3
3 4 1 hda4
3 5 506016 hda5
3 6 30282493 hda6
3 7 63480816 hda7
3 8 10691226 hda8
3 9 4505600 hda9
3 10 611071 hda10
root@hossu:/home/alex# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev binfmt_misc
nodev sockfs
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev eventpollfs
nodev devpts
reiserfs
ext3
ext2
nodev ramfs
msdos
vfat
iso9660
ntfs
ufs
udf
root@hossu:/home/alex# mount -t ufs -o ufstype=44bsd,ro /dev/hda9 /mnt/freebsd
mount: wrong fs type, bad option, bad superblock on /dev/hda9,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@hossu:/home/alex# mount -t ufs -o ufstype=42bsd,ro /dev/hda9 /mnt/freebsd
mount: wrong fs type, bad option, bad superblock on /dev/hda9,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@hossu:/home/alex#

The same happens. I tried -o ufstype=42bsd because of this:
a: 1* 561* 560* 4.2BSD 2048 16384 28552
told by fdisk.

Any ideas?
Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: BSD disklabel and mounting

How to add 2 hdd and mount to /home www.computing.net/answers/linux/how-to-add-2-hdd-and-mount-to-home/22309.html

[Newbie]mount and sndconfig question www.computing.net/answers/linux/newbiemount-and-sndconfig-question/9177.html

Slackware and Mounting www.computing.net/answers/linux/slackware-and-mounting/23231.html