[hllug] Re: Up the creek

  • From: hc@xxxxxxxxxxx
  • To: hllug@xxxxxxxxxxxxx
  • Date: Fri, 28 Dec 2012 02:30:41 -0600 (CST)

 

Thanks Lee I just got back on DSL. here is the result of the fsck -n. & fdisk
Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        5720    45940430   83  Linux
/dev/sda2           10819       30402   157297665    5  Extended
/dev/sda3   *        5721       10819    40954828   83  Linux
/dev/sda5           29276       30402     9046016   82  Linux swap / Solaris
/dev/sda6           28885       29276     3135488   82  Linux swap / Solaris
/dev/sda7           27941       28884     7582617   82  Linux swap / Solaris
/dev/sda8           10819       27940   137527296   83  Linux

Partition table entries are not in disk order
herb@herb-elfa:~$ fsck -fn /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
Warning!  /dev/sda1 is mounted.
fsck.ext2: Permission denied while trying to open /dev/sda1
You must have r/o access to the filesystem or be root
herb@herb-elfa:~$
 
It is mounted already so my confusion is how to run 'ls' from this diff 
partition I tried this
herb@herb-elfa:~$ ls -l  /media/a724d786-cc12-4d7a-8c67-e75cadfbb9cc/home/herb
ls: cannot access /media/a724d786-cc12-4d7a-8c67-e75cadfbb9cc/home/herb: No 
such file or directory
 
I can see both /home & /herb  in the file manager but when I try to open it 
reports it is not a folder I dunno how this happen when all I did was run chmod 
& chown on /home/herb??
Should I now run the fsck commands I didn't want to do further damage
thanksLee
hh
 
On Thursday, December 27, 2012 09:17, "Lee Parmeter" <geek@xxxxxxxxxxxxxx> said:



Herb:

 boot from other partition or a live CD and then mount the problem       
partition that contains your home directory.

 You can use "fdisk -l" to see other mountable partitions after you       are 
booted in Linux.

 Before you mount the partition, check it using -n (no fix) with:       
(replace ?? with your drive's notation, ie sdb5)

 fsck -fn /dev/sd??

 If problem reported:

 Either use this to fix: (with your ack at every step)

 fsck -fv /dev/sd??

 Or use this to fix automatically:

 fsck -fpv /dev/sd??

 To mount:

 1. create tmp directory under /mnt on your running Linux

 sudo mkdir /mnt/tmp

 2. determine file system type (ext3, ext4) of the partition you       want to 
mount.

 parted -l

 3. mount the partition

 mount -t ext3 /dev/sd?? /mnt/tmp

 4. Now you can run "ls -l /home/herb"

 -Lee



 On 12/27/2012 08:13 AM, [mailto:hc@xxxxxxxxxxx] hc@xxxxxxxxxxx wrote:
sorry I cannot boot into that           partition so I do not know how to run 
ls on it?? I can only           boot into a diff partition on same drive, 
please tell me how
hh
 
 
On Thursday, December 27, 2012           08:08, "admin" 
[mailto:admin@xxxxxxxxx] <admin@xxxxxxxxx> said:



What does "ls -l /home/herb" show?

Sent from my               Samsung Galaxy™ S II 4G
[mailto:hc@xxxxxxxxxxx] hc@xxxxxxxxxxx wrote:

Well I               yayed 2 soon. .. I cannot boot because it says it cannot   
            find a /home/herb folder well running in the other pat I            
   can see the sda8 part with /home & /herb there but               when I 
attempt to open it with filemanager it says it is               not a folder?
 
I               looked in property’s>permissions it says permissions            
   cannot be determined but gives this as location ..               
/media/a724d786-cc12-4d7a-8c67-e75cadfbb9cc/home/herb
 
I hope               there is a way to fix this without losing all the files in 
              there I am backed up except for maybe past week so won't          
     kill me
thanks               hh

Other related posts: