Page 5 of 21 FirstFirst ... 3456715 ... LastLast
Results 41 to 50 of 205

Thread: How to fstab

  1. #41
    Join Date
    Apr 2008
    Beans
    1

    Re: How to fstab

    Hi all,

    I have ubuntu installed on a 120GB IDE HDD, with 2x 200GB Sata drives spare that i wish to mount.

    I've gone ahead and created/formatted the partitions as you can see below:

    Code:
    Disk /dev/sdb: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       24321   195358401   83  Linux
    
    Disk /dev/sdc: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       24321   195358401   83  Linux
    And I've tried to mount the drive(s) via:

    Code:
    mount -t ext3 /dev/sdb1 /mnt/files
    Which returns:

    Code:
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    I've also tried adding the entry in fstab but of course that doesn't work if the drives wont manually mount..

    Any suggestions?

    Please forgive me if I'm a moron, new to linux .

  2. #42
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to fstab

    I do not see any obvious problem.

    If you do not have an entry in fstab, you need to mount with sudo.

    Make a mount point first.

    Are your partitions formatted ?

    Code:
    sudo mkdir /mnt/files
    sudo mount /dev/sdb1 /mnt/files
    Also, right after attempting to mount, what is the output of this command :

    Code:
    dmesg | tail
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #43
    Join Date
    Apr 2008
    Location
    United Kingdom
    Beans
    27
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to fstab

    Thanks for this post, I'm gonna bookmark it. I'm pretty sure it'll come in handy
    Luke - 14 year old technology enthusiast
    My Specs: Ubuntu Gutsy ECS GeForce 6100SM-M - AMD Athlon64 X2 Dual Core 5,000+ (2.6GHz) - 2GB DDR2 RAM - 400GB Hitachi DeskStar - 700W X-Power
    Productivity Zero - My games arcade and currently only project.

  4. #44
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to fstab

    I want to change the default label for my mounts as they are being displayed as 10.7gb media, and I would like more meaningful names. Tried using tune2fs and e2label but I get a "Couldn't find valid filesystem superblock" error.
    Seeing as they are already mounted, could I just edit fstab and add some labels?

    EDIT: Okay got the ext3 partition sorted, now ntfslabel can't access my windows partition as it 's already mounted. I sudo nautilus unmounted it, but then ntfslabel is denied access to it. Anyway to change an unmounted NTFS partition's label?

    EDIT 2: No matter, managed to unmount it from terminal, and then used PYSDM to create a label for it. Job done.
    Last edited by A$h X; April 25th, 2008 at 03:11 PM.
    We are building the future, and the future is called Ubuntu

  5. #45
    Join Date
    Feb 2008
    Location
    Portugal
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to fstab

    Quote Originally Posted by A$h X View Post
    EDIT: Okay got the ext3 partition sorted,
    Could you tell me how you did it?
    Because I have similar problems:
    http://ubuntuforums.org/showthread.php?t=771496

  6. #46
    Join Date
    Aug 2007
    Location
    London, England
    Beans
    163
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to fstab

    Pretty sure it was simply:
    sudo e2label /dev/sdax label
    where sdax refers to your partition. and label is what you want to call it. If you run it without sudo then you get the previously mentioned error. You'll need a reboot to see the changes take effect, and I don't think you need to edit fstab as your partitions are already mounted.

    If it's still giving you problems after entering the command and rebooting, then try installing PYSDM, a nice little app which allows you to to mount and label drives/partitions. It basically edits fstab on your behalf, and it seems to work for me.

    Get it from synaptic, or type:

    sudo aptitude install pysdm
    We are building the future, and the future is called Ubuntu

  7. #47
    Join Date
    Feb 2008
    Location
    Portugal
    Beans
    44
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to fstab

    Thanks A$h X, but I guess my problem is different.
    I just wanted my ext3 partition mounted as a unremovable drive (without the desktop icon).

  8. #48
    Join Date
    Oct 2005
    Location
    Nice, France
    Beans
    137
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to fstab

    Hi, this post is great, thanks a lot!

    I'm a bit stuck on one thing though. I have a FAT32 partition I've managed to get automounting, however it's not letting me write data to it because the owner is root. This is the fstab entry for it:

    #/dev/sda2
    UUID=4812-2CE3 /media/SHARED vfat auto,users,rw 0 0
    What should I change to allow read/write access to anyone logged in? I'm on Hardy if that's of any relevance...

    Thanks a bunch
    Google is my friend. Saves my butt every time (well most times).

  9. #49
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: How to fstab

    Quote Originally Posted by duckgoesoink View Post
    Hi, this post is great, thanks a lot!

    I'm a bit stuck on one thing though. I have a FAT32 partition I've managed to get automounting, however it's not letting me write data to it because the owner is root. This is the fstab entry for it:



    What should I change to allow read/write access to anyone logged in? I'm on Hardy if that's of any relevance...

    Thanks a bunch
    Try this entry :

    Code:
                                  #/dev/sda2
    UUID=4812-2CE3  /media/SHARED  vfat  auto,users,uid=1000,gid=100,dmask=007,fmask=137  0 0
    Last edited by bodhi.zazen; April 28th, 2008 at 03:42 PM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  10. #50
    Join Date
    Oct 2005
    Location
    Nice, France
    Beans
    137
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to fstab

    @bodhi.zazen - thanks a lot! That seems to have fixed it (after I rebooted).
    Google is my friend. Saves my butt every time (well most times).

Page 5 of 21 FirstFirst ... 3456715 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •