Windows HHD??
Hi there,
I have 2 hard drives: 160 Gb HDD with Suse 10.2 running and another 160 Gb HDD with Windows XP running. I have all my mp3s on my XP drive so naturally I want to access those in Suse. Problem was that while installing Suse I unpluged my XP drive so its not been detected by Suse now. Both drives are in the same machine. The XP drive is fat 32 (i think- is there a way to check this?) Basically I want to be able to access my XP drive- How would I detect and mount the XP drive in Suse 10.2? Any help would help, or even a point in the right direction. Thanks. |
hda = master on primary controller
hdb = slave on primary controller hdc = master on secondary controller hdd = slave on secondary controller You need to create a mount point for it, like /windows in the filesystem: mkdir /windows as root. Then you need to place an entry in your /etc/fstab file that connects the device to the mount point: /dev/hdb /windows fat32 defaults,users,rw 1 1 You'll have to verify what I wrote above. Particularly the the device in the first field and the parameters in the third field. I'm not sure using "defaults" is the right thing to do for a fat32 drive, or even "users". Then try mounting it: mount /windows If the entry in fstab is correct, you should be able to see /windows in your filesystem. But check the parameters in man fstab first. |
Depending on how your drive is formatted, you might not want /dev/hdb, since this is the raw device for the entire drive including boot sector and partition table.
/dev/hdb1 = first partition on /dev/hdb /dev/hdb2 = second partition on /dev/hdb etc. Run: fstab -l /dev/hdb as root to list your partitions. |
Run the command as root /sbin/fdisk -l to see what drives and partitions it sees with thier types. Post output.
Brian |
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 262 2104483+ 82 Linux swap / Solaris /dev/sda2 * 263 2873 20972857+ 83 Linux /dev/sda3 2874 19457 133210980 83 Linux Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 9781 78565851 c W95 FAT32 (LBA) /dev/sdb2 9782 17512 62099257+ f W95 Ext'd (LBA) /dev/sdb3 17513 19457 15623212+ 77 Unknown /dev/sdb5 9782 17512 62099226 b W95 FAT32 |
Ok all the partitions on the second sata or scsi drive is fat32. You can use the filesystem type vfat when mounting. Post contents of your current /etc/fstab file for options used by the other mounts. But from the above post the line in fstab for say /dev/sda5 would like this. Note your options like user may be user or users. Minor difference distro to distro.
Code:
/dev/sdb5 /mnt/sdb5 fat32 auto,umask=000,defaults,users,rw 1 1 Brian |
Here is my current fstab content:
Code:
/dev/sda2 / ext3 acl,user_xattr 1 1 |
Lets do /dev/hda5. Open a terminal session and su to root. Using and editor edit the file /etc/fstab. Add the following line after say the /dev/sda1.
Code:
/dev/sdb5 /mnt/sdb5 fat32 auto,umask=000,defaults,user,rw 0 0 cd /mnt mkdir sdb5 Now mount it. No reboot required. Changes to fstab take effect immediately. mount /dev/sdb5 Brian |
Okay I added the following line to fstab
Code:
/dev/sdb5 /sdb5 vfat auto,unmask=000,defaults,user,rw 0 0 Then I created the /sdb5 dir and typed the following as root: Code:
# mount sdb5 Code:
/dev/sdb5 /sdb5 vfat defaults,user,rw 0 0 I can now see Drive D (for windows - I had 2 partitions). Question, what are the "0 0" for? What is "1 1"? |
Check out this post on that. http://learn.clemsonlinux.org/wiki/Fstab
Or using the man command to learn about many linux commands. ie: man fstab man mount man ls man fdisk In your post you have unmask, it is mispelled and should be umask. Use of default should automount on boot. Using mount sdb5 I would think it would have produced a different error. One would use mount /sdb5 or mount /dev/sdb5 Glad to see you have it going now. Brian |
Thank you all. You've all helped.
|
All times are GMT -5. The time now is 04:39 AM. |