PDA

View Full Version : I want to Mount another harddisk fedora core 3


Nuykung
2006-04-22, 02:03 AM CDT
Harddisk IDE 1 Fedora Core 5 (Used)
Harddsik IDE 2 Fedora Core 3 (Mount)

#mkdir hdc
#mount /dev/hdc2 /hdc
mount: wrong fs type, bad option, bad superblock on /dev/hdc2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

imdeemvp
2006-04-22, 02:12 AM CDT
It should be like this:

1. mkdir /mnt/name_folder_here
2. mount /dev/hdc2 /mnt/name_folder_here

hdc2 = third hard drive?

Nuykung
2006-04-22, 02:43 AM CDT
#mkdir /mnt/hdc
#mount /dev/hdc2 /mnt/name_folder_here

This Error

mount: wrong fs type, bad option, bad superblock on /dev/hdc2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

hdc2 is Fedora Core 3 VolGroup00

imdeemvp
2006-04-22, 02:57 AM CDT
hdc = name_folder_here so you are doing it wrong....

try this: mount /dev/hdc2 /mnt/hdc

terry_g
2006-04-22, 08:29 AM CDT
You need to specify the file type and the location of the hdc2 directory you created.If it is ext3 and if you created the hdc2 directory in /mnt. Then this command as root should work:

mount -t ext3 /dev/hdc2 /mnt/hdc2

Adding this line to your /etc/fstab will mount it for you:

/dev/hdc2 /mnt/hdc2 ext3 user,noauto 0 0

Hope this helps!!! Terry

gazzerh
2006-04-22, 08:40 AM CDT
hdc = name_folder_here so you are doing it wrong....

try this: mount /dev/hdc2 /mnt/hdc

Since when do you *have* to mount filesystems in /mnt?

He created a directory /hdc. He can mount here using "mount /dev/hdc2 /hdc" if he wants.

Run: cat /proc/partitions and make sure you are trying to mount the right partition and use the -t mount option to define the correct fs type.

Gaz

imdeemvp
2006-04-22, 02:24 PM CDT
Since when do you *have* to mount filesystems in /mnt?

He created a directory /hdc. He can mount here using "mount /dev/hdc2 /hdc" if he wants.

Run: cat /proc/partitions and make sure you are trying to mount the right partition and use the -t mount option to define the correct fs type.

Gaz
My first impression is that he wants to transfer data from one drive to another....so dont we need a mounting pointing for user to access the files?

gazzerh
2006-04-22, 03:50 PM CDT
My first impression is that he wants to transfer data from one drive to another....so dont we need a mounting pointing for user to access the files?

I don't undertand what you are going on about here. /hdc is a perfectly acceptable mount point. imdeemvp, maybe "man mount" *before* you try to answer a question about mount would help?

#mkdir hdc
#mount /dev/hdc2 /hdc
mount: wrong fs type, bad option, bad superblock on /dev/hdc2,
missing codepage or other error

There is absolutely nothing wrong with the command he ran (apart from maybe a missing "-t ext3" switch). In linux/unix you can mount wherever you want. It doesn't need to be in /mnt. He can mount the other drive over /hdc and get access to the data.

What directory he mounts over isn't the issue anyway. It would come back with a "can't find directory or something" error if it was an issue with the mount point. His problem is either /dev/hdc2 isn't holding the partition he wants or mount doesn't know what fs type it is.

Gaz

daihard
2006-04-22, 04:01 PM CDT
There is absolutely nothing wrong with the command he ran (apart from maybe a missing "-t ext3" switch). In linux/unix you can mount wherever you want. It doesn't need to be in /mnt. He can mount the other drive over /hdc and get access to the data.
Like you, I'm guessing the OP probably needs "-t ext3" as the default file system type for mount is, IIRC, ext2.

gazzerh
2006-04-22, 04:06 PM CDT
Like you, I'm guessing the OP probably needs "-t ext3" as the default file system type for mount is, IIRC, ext2.

Think the issue is more likely he's mounting the wrong partition. You shouldn't need to specify -t ext3. It is usually auto detected.

Nuykung
2006-04-22, 08:33 PM CDT
hdc2 is LVM

brickie
2006-04-23, 12:50 PM CDT
I am attempting to do (virtually) the same thing- that is, remount my old Fedora 3 disk on
/dev/hdb
so that I can transfer my data, code, etc from this disk to a newly installed Fedora 5 on
/dev/hda
(I tried the update route from Fedora 3 to 5 and it failed, so I did a fresh install on a spare disk).

at this point
fdisk -l
gives me
Disk /dev/hda: 20.5 GB, 20525137920 bytes
240 heads, 63 sectors/track, 2651 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 14 105808+ 83 Linux
/dev/hda2 15 2651 19935720 8e Linux LVM

Disk /dev/hdb: 13.6 GB, 13613064192 bytes
255 heads, 63 sectors/track, 1655 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 1655 13189365 8e Linux LVM


Using
mkdir /mnt/fedora3
mount -t ext3 /dev/hdb2 /dev/fedora3

gives me the same superblock type error seen by Nuyking. I can happily
use
mount -t ext3 /dev/hdb1 /dev/fedora3
and I see what I would expect to find in a boot partition.

Alas, what I want is on /dev/hdb2. It would seem that mount is unhappy about loading up a partition
that contains an executable version of unix. Not a bad idea in terms of keeping users from mixing up
filesystems & kernels, but it makes getting to the old data rather annoying. I suspect that this dragon has been
slain before and I'll keep looking at other threads.

daihard
2006-04-23, 01:05 PM CDT
Think the issue is more likely he's mounting the wrong partition. You shouldn't need to specify -t ext3. It is usually auto detected.
Ah, okay. Never thought of auto detection. Thanks for the info... I learn new things every day. :)

Kaniballss
2006-07-11, 08:20 PM CDT
Brickie : I have the same problem I need to restore a backup files in fedora 3 to fedora 5
did you find a cure for the problem ... do you think that eliminating the boot partition in the fedora 3 will help so the new one does not detect an existing system ...?

jhetrick62
2006-07-11, 10:53 PM CDT
I'm no expert, but it seems to me the problem has more to do with trying to mount the LVM partition than anything else, as I don't run LVM and I can mount my FC5 box into the FC4 operating partition using the very same mount command: mount /dev/hda1 /mnt/hda1

Secondly, why slam imdeemvp over his help?? Obviously you don't read this forum very often or you would know that his help has been invaluable to many people over the past year or so that I have read this forum.

The command works for me as well as you. I do choose to mount all drives under /mnt but that is for my organizational needs.

We don't need flaming here over something so simple.

Jeff

jhetrick62
2006-07-11, 11:05 PM CDT
After quick research, read this thread and it may help you.

http://forums.fedoraforum.org/forum/showthread.php?t=116531&highlight=mount+lvm+partition

Jeff