PDA

View Full Version : [ubuntu] but it's not mounted



pilosopotacio
August 15th, 2010, 08:03 PM
here's my problem:
edson@edson-laptop:~$ fsck
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/sda1 is mounted.

WARNING!!! The filesystem is mounted. If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.

Do you really want to continue (y/n)? yes

fsck.ext4: Permission denied while trying to open /dev/sda1
You must have r/w access to the filesystem or be root

but it's not mounted. need help please really stupid

Sealbhach
August 15th, 2010, 08:10 PM
Try instead to force a fsck on your next boot. I'm not sure if this still works, but it's a safer way to do it:

http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/

.

surfer
August 15th, 2010, 08:15 PM
what does

mount
give as output?

pilosopotacio
August 23rd, 2010, 08:20 PM
what does

mountgive as output?

this is what i got

edson@edson-laptop:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/edson/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=edson)
edson@edson-laptop:~$

surfer
August 23rd, 2010, 08:24 PM
this is what i got

edson@edson-laptop:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
...

see, /dev/sda1 is mounted on /type .

you have to


$ sudo umount /type
first.

eriktheblu
August 23rd, 2010, 08:33 PM
I think that means he has /dev/sda1 mounted as / (ext4 as the file system)

Unmounting / does not seem like a winning proposition. Try it from a live CD instead.

Elfy
August 23rd, 2010, 08:34 PM
it's mounted / the type is ext4

surfer
August 23rd, 2010, 08:39 PM
oh, of course. sorry, it's late here.

/dev/sda1 is mounted on / .

+1 for "Unmounting / does not seem like a winning proposition. Try it from a live CD instead".

silverglade00
August 23rd, 2010, 08:45 PM
/dev/sda1 is mounted on / .

How the heck do you get Slashdot mounted on your system?!?!? ;)

FuturePilot
August 23rd, 2010, 08:53 PM
You can't run fsck on a mounted partition and you can't unmount your / while the system is running. You have to use the live CD to run fsck on your /. Also, you can't fsck your partitions as a normal user. Use sudo.