View Full Version : [ubuntu] Partition auto mounting issue
babacan
July 19th, 2008, 07:44 PM
My 2nd partition doesn't seem to auto mount, I lastly set a .jpg as a wallpaper that is inside my 2nd partition (where it stands as storing files), every Ubuntu reboot the desktop background appears as blank so I suspected it doesnt auto mount, It also doesnt appear at /media , I have to click the partitions name from the places menu of Ubuntu, after that the partiiton appears under /media aswell as wallpaper appears.
Any fix for this?
Cheerssudo umount /dev/sda1
ercferret18
July 19th, 2008, 07:47 PM
maybe if you edit /etc/fstab... i'm not sure...
Rocket2DMn
July 19th, 2008, 07:53 PM
Can you please post the output of
sudo fdisk -l
cat /etc/fstab
sudo blkid
mount
babacan
July 19th, 2008, 07:57 PM
Can you please post the output of
sudo fdisk -l
cat /etc/fstab
sudo blkid
mount
Sure,
for sudo fdisk -l:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x41074106
Device Boot Start End Blocks Id System
/dev/sda1 1 12581 101056851 83 Linux
/dev/sda2 * 12582 18660 48829567+ 83 Linux
/dev/sda3 18661 19457 6401902+ 82 Linux swap / Solaris
For cat /etc/fstab:
# /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/sda2 :
UUID=0d94968f-0e4a-4271-9eb3-09fdce3616c6 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda3 :
UUID=fc2fa208-2cf2-4d16-bad3-febbe8f61802 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
For sudo blkid:
/dev/sda1: UUID="ec3d5a6f-446c-487c-a514-0eeb1c095ba6" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: UUID="0d94968f-0e4a-4271-9eb3-09fdce3616c6" TYPE="ext3"
/dev/sda3: TYPE="swap" UUID="fc2fa208-2cf2-4d16-bad3-febbe8f61802"
And finally for "mount":
/dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sda1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
gvfs-fuse-daemon on /home/uluc/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=uluc)
Rocket2DMn
July 19th, 2008, 08:03 PM
The mount command seems to think that /dev/sda1 is mounted, so let's unmount it, add an entry to fstab, then try to remount.
sudo umount /dev/sda1
Now open fstab for editing
gksudo gedit /etc/fstab
Now add this line to the bottom:
UUID=ec3d5a6f-446c-487c-a514-0eeb1c095ba6 /media/sda1 ext3 defaults 0 2
Where I said /media/sda1, he can use whatever name he wants under /media, just change it in the next command, too, so that the mount point exists (and don't use spaces in the name).
Save and close fstab, now create the mount point:
sudo mkdir /media/sda1
Now try and mount with
sudo mount -a
If it fails, please post the output back here.
Also, because of the new mount point, you will have to change any stored links to files on that drive. You can create /media/disk as it is now and use that as a mount point, but that is usually reserved for hal to automount drives.
babacan
July 19th, 2008, 08:07 PM
thanks alot, seems working! I am going to mark this as solved
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.