You are not logged in.

#1 2011-04-06 02:01:34

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

fstab issues.

So I have a laptop from a friend of mine I'm trying to fix after he played around with fstab file without knowing what he was doing. I have no experience with editing the fstab, so I don't know what's wrong with it... I don't run Arch on my machine, I use Slackware KDE, so I can't check my fstab as a reference. He can't mount his mybook on it anymore, and when he could it would be read only, so I'm going to post his fstab info here and hopefully someone here can tell me what to edit/delete:

devpts  /dev/pts        devpts  defaults        0       0
#Entry for /dev/sda3 :
UUID=5a115e76-cb50-4462-876c-1a2a09582c05       /       ext4    defaults       $
#Entry for /dev/sda1 :
UUID=c208f3b5-7dcb-4d79-b5e9-9478497fa36c       /boot   ext2    defaults       $
#Entry for /dev/sda4 :
UUID=833514b8-eead-41ce-b5bd-d05b7a21babb       /home   ext4    defaults,user_x$
#Entry for /dev/sdc1 :
UUID=0FADC2404F941083   /media/SEANSIPOD        ntfs-3g defaults,nosuid,nodev,l$
UUID=26AC0FF2AC0FBB77   /media/Mybook   ntfs-3g ro,nosuid,nodev,uhelper=udisks,$
shm     /dev/shm        tmpfs   nodev,nosuid    0       0
#Entry for /dev/sda2 :
UUID=2597ece8-c5ea-427a-b073-f415823038a6       swap    swap    defaults       $

#/dev/cdrom     /media/cd       auto    ro,user,noauto,unhide   0       0

Thank you in advance for your help smile

Last edited by Mr_ED-horsey (2011-04-06 02:12:46)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#2 2011-04-06 02:06:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Please put program output between BBCode code tags.  It sets it apart from the dialog, it uses mono spaced fonts so columns line up, and it adds scroll bars for longer outputs -- Be kind to your reader.

Can you post the output od ls /dev/disk/by-uuid -l  
We need to check those UUIDs


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-04-06 02:11:52

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

I apologize for that. I never really use forums.

total 0
lrwxrwxrwx 1 root root 10 Apr  5 18:33 0FADC2404F941083 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr  5 18:31 2597ece8-c5ea-427a-b073-f415823038a6 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr  5 18:32 4648-A8FE -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr  5 18:31 5a115e76-cb50-4462-876c-1a2a09582c05 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr  5 18:31 833514b8-eead-41ce-b5bd-d05b7a21babb -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr  5 18:31 c208f3b5-7dcb-4d79-b5e9-9478497fa36c -> ../../sda1

I'm on his laptop, and I have to say I'm liking how it runs. I may add Arch on my desktop smile


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#4 2011-04-06 02:29:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Mr_ED-horsey wrote:

I apologize for that. I never really use forums.
...I may add Arch on my desktop smile

No worries, that is why we are here -- to help make this place even better smile
...And you would be a welcome addition.

...
UUID=26AC0FF2AC0FBB77   /media/Mybook   ntfs-3g ro,nosuid,nodev,uhelper=udisks,$ 
....

For starters, change the ro to rw  Ensure there is whitespace between ntfs-3g and the rw.  Make sure there is no whitespace after the rw

Many lines are truncated and terminated with a $.  We might need to see the rest of those lines; we will see.

It does not look like mybook (UUID=26AC0FF2AC0FBB77)  is attached, or if it is, the UUID is wrong.
Is it attached?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-04-06 02:39:12

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

The Mybook and the iPod are connected, but the weird part is that they are not in the /media folder but when I click on the Computer icon on the desktop they are listed there next to the CD/DVD drive and File System... This may seem like a silly question but what is "whitespace?"

I changed the ro to rw, here's what I have now in fstab:

devpts  /dev/pts        devpts  defaults        0       0
#Entry for /dev/sda3 :
UUID=5a115e76-cb50-4462-876c-1a2a09582c05       /       ext4    defaults       $
#Entry for /dev/sda1 :
UUID=c208f3b5-7dcb-4d79-b5e9-9478497fa36c       /boot   ext2    defaults       $
#Entry for /dev/sda4 :
UUID=833514b8-eead-41ce-b5bd-d05b7a21babb       /home   ext4    defaults,user_x$
#Entry for /dev/sdc1 :
UUID=0FADC2404F941083   /media/SEANSIPOD        ntfs-3g defaults,nosuid,nodev,l$
UUID=26AC0FF2AC0FBB77   /media/Mybook   ntfs-3g rw,nosuid,nodev,uhelper=udisks,$
shm     /dev/shm        tmpfs   nodev,nosuid    0       0
#Entry for /dev/sda2 :
UUID=2597ece8-c5ea-427a-b073-f415823038a6       swap    swap    defaults       $

#/dev/cdrom     /media/cd       auto    ro,user,noauto,unhide   0       0
#/dev/dvd       /media/dvd      auto    ro,user,noauto,unhide   0       0
#/dev/fd0       /media/fl       auto    user,noauto     0       0

Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#6 2011-04-06 02:48:44

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: fstab issues.

You might have to create the directories in /media if they don't already exist.
A whitespace is a blank space, such as when you hit the spacebar on your keyboard.
Your fstab \[code\] is still truncated.  If you have xclip installed just type this from the terminal:

$ cat /etc/fstab | xclip -selection clipboard -i

then right click and paste it so it has the entire /etc/fstab file so we can continue to examine all the options.

Offline

#7 2011-04-06 03:04:21

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
$ 
$ devpts/dev/ptsdevptsdefaults00
bash: devpts/dev/ptsdevptsdefaults00: No such file or directory
$ #Entry for /dev/sda3 :
$ UUID=5a115e76-cb50-4462-876c-1a2a09582c05/ext4defaults01
$ #Entry for /dev/sda1 :
$ UUID=c208f3b5-7dcb-4d79-b5e9-9478497fa36c/bootext2defaults01
$ #Entry for /dev/sda4 :
$ UUID=833514b8-eead-41ce-b5bd-d05b7a21babb/homeext4defaults,user_xattr01
$ #Entry for /dev/sdc1 :
$ UUID=0FADC2404F941083/media/SEANSIPODntfs-3gdefaults,nosuid,nodev,locale=en_US.utf800
$ UUID=26AC0FF2AC0FBB77/media/Mybookntfs-3grw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,dmask=0077,fmask=017700
$ shm/dev/shmtmpfsnodev,nosuid00
bash: shm/dev/shmtmpfsnodev,nosuid00: No such file or directory
$ #Entry for /dev/sda2 :
$ UUID=2597ece8-c5ea-427a-b073-f415823038a6swapswapdefaults00
$ 
$ #/dev/cdrom/media/cdautoro,user,noauto,unhide00
$ #/dev/dvd/media/dvdautoro,user,noauto,unhide00
$ #/dev/fd0/media/flautouser,noauto00

Lol about whitespace.. I just never heard that term before...

<EDIT>
Oh yeah, I had to reboot due to network issues, and when I logged back in both the iPod and Mybook appear on the desktop... I have no idea how that happened... But they are still not in the /media folder, The iPod no longer has the Ipod icon but an external HD one...
<EDIT>

<EDIT #2>
Both are now somehow functional. Don't know why but I'm not going to argue with the results, so what I'm asking now is how have them mounted in the /media folder where they should be in the first place. The ipod is detected and operational using gtkpod although i'm a little confused about the icon issue. Didn't really think it would work when it's not being read as an iPod, but again, don't argue with results wink
<EDIT #2>

Last edited by Mr_ED-horsey (2011-04-06 03:35:10)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#8 2011-04-06 03:31:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Okay, now that I've had dinner, lets take a closer look...

fstab assumes the mount point exists.  These mount points are usually some place like /mnt/someMountPont.  The /media directory is usually for mount points that are created dynamically by the various automount tools.  These are used for things like thumb drives where we don't know in advance what device to expect or when it will happen.  fstab is for things that are to be seen repetitively -- hopefully available at boot. So.

lets look in /mnt and create a new directory there - say mybook. You will have to do that as root. 

sudo mkdir /mnt/mybook

Then, try the following:

sudo mount /dev/sdb1 /mnt/mybook

No errors, good -- keep going.  Errors -- post them here.
post the output of :

mount

Does your friend want automount, where the icon goes away when the device is disconnected ?
If not, he will have to initiate the mount if the device is not connected at boot time.  One path uses fstab, the other depends on dbus.  What desktop environment does he use?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2011-04-06 03:46:19

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

I'm pretty sure he wants automount. That's what he had before from what I remember... The external hd used to be called Mybook before I rebooted, but now it is listed as '320 GB Filesystem' again, I have no idea why, so (again possible silly question) should I name the directory that or just use mybook? He uses Gnome.

Last edited by Mr_ED-horsey (2011-04-06 03:47:15)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#10 2011-04-06 04:04:59

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

More issues... after another reboot due to an unrelated issue, the ipod mounted in the same fashion as it did before but functions, but this time the traditional ipod icon is there but when i connected the mybook (still called 320 GB Filesystem) I got this error message:

Unable to mount 320 GB Filesystem

Error mounting: mount exited with exit code 1: helper failed with:

mount according to mtab. /dev/sdb1 is already mounted on /media/SEANSIPOD

mount failed

I also have two new folders in the /home/username folder called Filesystem & GB. both belonging to root... Confused.

Last edited by Mr_ED-horsey (2011-04-06 04:06:47)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#11 2011-04-06 04:07:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Sorry, my bad.  Should be sudo mount /dev/sdc1 /mnt/mybook


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2011-04-06 04:17:25

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

I typed in 'mybook.' you didn't respond to my question about using 'mybook' or '320 GB Filesystem.' This is what I got:

$ sudo mkdir /mnt/mybook
$ sudo mount /dev/sdc1 /mnt/mybook
$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=223696,mode=755)
/dev/sda3 on / type ext4 (rw,commit=0)
devpts on /dev/pts type devpts (rw)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda4 on /home type ext4 (rw,user_xattr,commit=0)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sdb1 on /media/SEANSIPOD type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
shm on /dev/shm type tmpfs (rw,nosuid,nodev)
gvfs-fuse-daemon on /home/neruson/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=neruson)
/dev/sdc1 on /media/SEANSIPOD_ type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
/dev/sdc1 on /mnt/mybook type vfat (rw)

Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#13 2011-04-06 05:07:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Lets try replacing this line:

UUID=26AC0FF2AC0FBB77 /media/Mybook      ntfs-3g       rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,dmask=0077,fmask=017700

with :::

UUID=4648-A8FE                  /media/Mybook       ntfs-3g      rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,dmask=0077,fmask=0177    0    0

But, I am not convinced that will work.  I think mybook is a VFAT volume, not an NTFS volume.  So you might need:

UUID=4648-A8FE                  /media/Mybook       vfat      rw,umask=0       0 0

or, If a did not trust the UUID (only 48 bit?) maybe:

/dev/sdc1                  /media/Mybook       vfat      rw,umask=0       0 0

BTW, whitespace in this case means at least one space or tab.  Add more to taste.  Some languages (C, C++, java) whitespace includes vertical whitespace (newlines).  In this context, whitespace only means horizontal whitespace.  This lets you line columns up to make it readable.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#14 2011-04-06 05:47:38

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

okaaaay... now nothing mounts. I loaded Gparted and it says the mybook is located in /dev/sdb1 and has an ntfs partition. the ipod is located in /dev/sdc1 and has a FAT32 partition. When I click on the computer icon on the desktop where the mybook and ipod icons are located and right click them to mount, first, the ipod one gives me this error:

Unable to mount location

Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdc1 on /media/Mybook

and when i click on the mybook icon (which is now called "320 GB Hard Disk: 320 GB Filesystem" for some reason) it gives me this error:

Unable to mount location

Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdb1 on /media/SEANSIPOD

Here is my current fstab:

$ # <file system> <mount point>   <type>  <options>       <dump>  <pass>
$ 
$ devpts/dev/ptsdevptsdefaults00
bash: devpts/dev/ptsdevptsdefaults00: No such file or directory
$ #Entry for /dev/sda3 :
$ UUID=5a115e76-cb50-4462-876c-1a2a09582c05/ext4defaults01
$ #Entry for /dev/sda1 :
$ UUID=c208f3b5-7dcb-4d79-b5e9-9478497fa36c/bootext2defaults01
$ #Entry for /dev/sda4 :
$ UUID=833514b8-eead-41ce-b5bd-d05b7a21babb/homeext4defaults,user_xattr01
$ #Entry for /dev/sdc1 :
$ UUID=0FADC2404F941083/media/SEANSIPODntfs-3gdefaults,nosuid,nodev,locale=en_US.utf800
$ UUID=4648-A8FE          /media/Mybook           ntfs-3g rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=100,dmask=0077,fmask=0177    0    0
bash: /media/Mybook: No such file or directory
$ shm/dev/shmtmpfsnodev,nosuid00
bash: shm/dev/shmtmpfsnodev,nosuid00: No such file or directory
$ #Entry for /dev/sda2 :
$ UUID=2597ece8-c5ea-427a-b073-f415823038a6swapswapdefaults00
$ 
$ #/dev/cdrom/media/cdautoro,user,noauto,unhide00
$ #/dev/dvd/media/dvdautoro,user,noauto,unhide00
$ #/dev/fd0/media/flautouser,noauto00
$ 
$ 

And just in case you need it again, here's my output after I ran ls /dev/disk/by-uuid -l

total 0
lrwxrwxrwx 1 root root 10 Apr  5 22:32 0FADC2404F941083 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Apr  5 22:32 2597ece8-c5ea-427a-b073-f415823038a6 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr  5 22:32 4648-A8FE -> ../../sdc1
lrwxrwxrwx 1 root root 10 Apr  5 22:32 5a115e76-cb50-4462-876c-1a2a09582c05 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr  5 22:32 833514b8-eead-41ce-b5bd-d05b7a21babb -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr  5 22:32 c208f3b5-7dcb-4d79-b5e9-9478497fa36c -> ../../sda1

Last edited by Mr_ED-horsey (2011-04-06 05:50:42)


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

#15 2011-04-06 06:05:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: fstab issues.

Sorry, its getting late (23:04 local)  add 'users' to the comma separated (no white space) for both devices i.e.:   rw,users,...
Based on what you said, the ipod needs to be mounted with vfat rather than with ntfs-3g.  Likewise mybook requires the ntfs-3g incantation.  The umask=0 option should be kept with  the vfat file system type.  Good night.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#16 2011-04-06 17:47:58

Mr_ED-horsey
Member
From: Portland, OR
Registered: 2011-04-06
Posts: 177

Re: fstab issues.

Alright... I just backed up his files on a data dvd and took screenshots of his rc.conf and mirrorlists and wrote down all the applications he had installed and just wiped the drive reinstalled arch on his machine and set everything back up like he had it... Everything works fine now. I should've just done that from the start. That was way easier wink Thanks for the help and sorry for the troubles... I also installed arch via virtual box on my desktop... Having fun playing around with that.


Desktop: Fedora 21 Mate + Compiz [x86_64] on 2 TiB HDD  /  Windows 7 Professional [x86_64] on 500 GiB HDD
Laptop: Arch Linux + Openbox [i686] 120 GiB SSD on Acer c720 Chromebook

Offline

Board footer

Powered by FluxBB