jmjohn
September 25th, 2008, 02:40 PM
Hello All,
I wanted to post a solution to a problem that plagued me this morning. I had been using "Storage Device Manager" or pysdm, which creates fstab entries for devices, making them mount in particular ways.
Well, whenever the computer went to sleep, it failed to unmount my music player. Then the /media entry and the /device was already in use, and unable to be unmounted. The system said that there was no device mounted.
Anyway, I made a bunch of entries for the device using pysdm. Basically, it made all my /dev/sda /dev/sdd1 entries all used up.
Next, when I plugged in another USB HD, it failed to mount. It said, "cannot mount volume, sdb1 does not exist".
Anyways, I backed up my fstab
sudo cp /etc/fstab /etc/fstab-backup
then I deleted all the created entries which were tying up my devices.
It went from looking like this:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=2e53d95d-b776-4e62-9e2b-fee7732b3b29 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=5166-37D8 /windows vfat utf8,umask=007,gid=46 0 1
# Entry for /dev/sda1 :
UUID=b1ded758-ff2c-4f93-8478-c56ea5d9be8f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdd1 /media/Podmachine vfat users 0 0
/dev/sdb1 /media/Podmachine vfat user 0 0
/dev/sdc1 /media/Podmachine vfat uid=jmjohn,gid=jmjohn,user 0 0
/dev/Podmachine /media/Podmachine vfat uid=jmjohn,group=jmjohn,user 0 0
To looking like this:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=2e53d95d-b776-4e62-9e2b-fee7732b3b29 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=5166-37D8 /windows vfat utf8,umask=007,gid=46 0 1
# Entry for /dev/sda1 :
UUID=b1ded758-ff2c-4f93-8478-c56ea5d9be8f none swap sw 0 0
And that fixed the problem. Hope this helps someone.
I wanted to post a solution to a problem that plagued me this morning. I had been using "Storage Device Manager" or pysdm, which creates fstab entries for devices, making them mount in particular ways.
Well, whenever the computer went to sleep, it failed to unmount my music player. Then the /media entry and the /device was already in use, and unable to be unmounted. The system said that there was no device mounted.
Anyway, I made a bunch of entries for the device using pysdm. Basically, it made all my /dev/sda /dev/sdd1 entries all used up.
Next, when I plugged in another USB HD, it failed to mount. It said, "cannot mount volume, sdb1 does not exist".
Anyways, I backed up my fstab
sudo cp /etc/fstab /etc/fstab-backup
then I deleted all the created entries which were tying up my devices.
It went from looking like this:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=2e53d95d-b776-4e62-9e2b-fee7732b3b29 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=5166-37D8 /windows vfat utf8,umask=007,gid=46 0 1
# Entry for /dev/sda1 :
UUID=b1ded758-ff2c-4f93-8478-c56ea5d9be8f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdd1 /media/Podmachine vfat users 0 0
/dev/sdb1 /media/Podmachine vfat user 0 0
/dev/sdc1 /media/Podmachine vfat uid=jmjohn,gid=jmjohn,user 0 0
/dev/Podmachine /media/Podmachine vfat uid=jmjohn,group=jmjohn,user 0 0
To looking like this:
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=2e53d95d-b776-4e62-9e2b-fee7732b3b29 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda5 :
UUID=5166-37D8 /windows vfat utf8,umask=007,gid=46 0 1
# Entry for /dev/sda1 :
UUID=b1ded758-ff2c-4f93-8478-c56ea5d9be8f none swap sw 0 0
And that fixed the problem. Hope this helps someone.