Linux Cannot access /dev/hda ?

Discussion in 'Software' started by Tomm, 31 Jan 2005.

  1. Tomm

    Tomm I also ride trials :¬)

    Joined:
    12 Apr 2004
    Posts:
    2,249
    Likes Received:
    0
    It's OK, I got it sorted. I made a few partitions using the windows disk management setup thing. AND I mounted them all in FC3. I feel so clever/geeky right at the moment! However, they aren't gonna be there when I restart are they? Do I need to update the fstab or something to kepp them mounted permanently?

    This is what I've done so far:
    Code:
    [root@localhost ~]# mount -t ntfs /dev/hda1 /mnt/windir
    [root@localhost ~]# mkdir /mnt/media
    [root@localhost ~]# mount -t ntfs /dev/hda5 /mnt/media
    [root@localhost ~]# mkdir /mnt/fat
    [root@localhost ~]# mount -t auto /dev/hda6 /mnt/fat
    Thanks for all the help, you've been great (Y)
     
  2. Uncle Psychosis

    Uncle Psychosis Classically Trained

    Joined:
    27 Jul 2003
    Posts:
    1,694
    Likes Received:
    9
    Yay!

    Right, when you reboot, your directories will not be mounted. However, the mountpoints will still be there because you mkdir'd them.

    So, next time you need to mount them you can just do

    #mount /dev/something -t somefilesystem /mnt/media

    for example.

    You're right in that you need to alter your fstab (to automount harddrives that is) If you do

    #man fstab

    It should explain how it works. It's pretty simple really---just a selection of columns in this order:

    <fs> <mountpoint> <type> <opts> <dump/pass>

    fs is the physical location, eg /dev/hdaX
    mountpoint is where you want it mounted i.e /mnt/media
    type is the fs type- i.e reiserfs, ext3, vfat, etc.
    opts is the options for it (i.e permissions etc---this is the hardest bit)
    dump/pass should probably just be left as 0 0--- I don't really understand what they do.

    Anyway, I hope that helps a bit. A quick read of the man pages and a google should explain it. Good luck!!

    Sam

    PS it might be an idea to make a backup of your existing fstab before you start- just in case!
     
Tags:

Share This Page