PDA

View Full Version : Hard disk problems.


deranged58
2005-12-06, 07:27 PM CST
I've tried asking this on another forum, but I still didn't understand how to. =/

I have two hard disks in my computer, but after installing Fedora Core 4 on one, I cannot access the other. Is there anything I should do? And please be detailed, because I'm a complete newbie at Linux or Fedora. Thanks in advance.

Firewing1
2005-12-06, 07:50 PM CST
By "cannot access" -- You mean you can't browse the files?
Open a Terminal (It's in "System tools" from the menu) and type:
su -
type root password that you set during install
fdisk -l
exit
Please post the result of that, then we can help.
Firewing1

deranged58
2005-12-06, 07:56 PM CST
Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9733 78075900 8e Linux LVM

Disk /dev/hdb: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2481 19928601 c W95 FAT32 (LBA)

This was the output. The hard disk I want to add is /dev/hdb. And yes, I cannot access the hard disk, nor the files on it. :'(

mndar
2005-12-06, 08:03 PM CST
All you have to do it
mount /dev/hdb1 /some/mount/point
some mount point is any directory. After mounting, all the files in that partition can be accessed from this directory

deranged58
2005-12-06, 08:22 PM CST
mount: you must specify the filesystem type

I got this output, so I did a fdisk to find my file system type.

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2481 19928601 c W95 FAT32 (LBA)

It says W95 FAT32. But when I tried adding FAT32 or vfat as the filesystem, it didn't register too.

[root@localhost ~]# mount -t FAT32 /dev/hdb /hdb
mount: unknown filesystem type 'FAT32'
mount: maybe you meant 'vfat'?
[root@localhost ~]# mount -t vfat /dev/hdb /hdb
mount: wrong fs type, bad option, bad superblock on /dev/hdb,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Now what do I do? =/

Firewing1
2005-12-06, 08:31 PM CST
try this (as root)
/sbin/modprobe vfat
mkdir /media/Windowz
mount -t vfat /dev/hdb1 /media/Windowz
cd /media/Windowz
ls
Firewing1

deranged58
2005-12-06, 08:53 PM CST
OMGoodness, THANKS SO MUCH! I had some really important info there, and you don't know how happy I am to be able to view those files now! Thanks!!!!

Firewing1
2005-12-07, 03:12 PM CST
No problem. If you want to be able to have it "mount" its called -- It's not like Windows anymore. Instead, you "mount" a partition to a directory, and then after the "mount" the directory contains that partition's contents. Please be careful with thumbdrives; be sure to unmount them (with the umount command) before removing them.
Back on track. To have it mount on boot, meaning to have your 2nd HD accessable on bootup automatically, add this to the /etc/fstab file: (You have to be root. Remember the 1st post? You can type su - to become root. you can then type gedit /etc/fstab to edit /etc/fstab. gedit is the command; it's a GUI file editor. /etc/fstab is the argument, telling it this is the file you want to edit.)
so:
su -
gedit /etc/fstab
now add this line:
/dev/hdb1 /media/Windowz vfat users,owner,rw,umask=000 0 0
I was reading your last post; You tried /dev/hdb for the mount.
You might wanna read up on partitions; it'll really help you understand what is going on.
/dev/hdb is just the drive. Each drive is divided into many partitions. Each partition can have it's own filesystem, which defines how it stored files. EG, Linux uses the ext3 filesystem. Windows now uses NTFS, but the older, more compatible one is Fat32. Linux calls it vfat.
The partitions are assigned by their number, in order, by adding it's number after the drive; that's why it was /dev/hdb1 and not /dev/hdb. If you drive was orginized like this:
/dev/hdb is the drive
1st partition is a 10 GB FAT32 (or, vfat) drive
2nd is a 10 GB ext3 (linux) drive
then
/dev/hdb1 is your windows,
/dev/hdb2 is your Linux. It's not how it really works, as urs in on 2 drives, but it's just an example.
Firewing1

deranged58
2005-12-07, 05:43 PM CST
I think I get what you mean. I only used /dev/hdb because there was only one partition. So that was wrong? I'll keep that in mind. =) Thanks.

dhufstader
2005-12-08, 04:06 PM CST
what would be the correct way to do this with an ntfs drive?

dhufstader
2005-12-08, 04:37 PM CST
what would be the correct way to do this with an ntfs drive?
nevermind.... after refining my search I figured out.