Author Topic: Linpus Lite messed up file system  (Read 11319 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #15 on: September 17, 2011, 01:06:01 am »
OK, I think your only options are to either:-

a) create a Linux (ubuntu, or similar) LiveUSB stick, boot to it, and run fsck from the command line (terminal), and hope it fixes the file system.

or

b) to do a full wipe/reinstall of Linpus... or a different Linux distribution such as Ubuntu or Xubuntu or Lubuntu etc.

If you need instructions, let me know... Have you got access to a Windows PC ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #16 on: September 17, 2011, 01:17:39 am »
OK, I have a Windows PC, having been posting here from it.

I downloaded an AA1 recovery disk linked to in one of your other posts from xroot.org if it comes to that... I need to recover some files first, assume a bootable flash drive with a LiveCD image on it will be the easiest way to gain access to my files? Do you have any links to resources for making such a bootable flash drive?

Thanks very much for your help and your patience, much appreciated.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #17 on: September 17, 2011, 01:28:35 am »
Yeh... get an ubuntu LiveCD ISO image from here:
http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-i386.iso

Then follow the instructions from "Step 2" on this page:
http://www.pendrivelinux.com/put-ubuntu-10-04-on-flash-drive-using-windows/
(will work for 11.04 too)
Just make sure you set a "persistence" file during creation of the LiveUSB... see pic below


Then all you have to do is boot from the USB stick, by either setting USB as the first boot device in the BIOS, or hitting the "boot device selection key" when you switch your PC on then selecting the USB stick... usually the F10 key but varies from manufacturer to manufacturer... and when asked, select "Try Ubuntu" rather than "Install Ubuntu".



Go ahead and create the Ubuntu LiveCD... meanwhile I'll look into ways to repair the .ICEauthority file... so once you've created it, before doing anything with it, come back here and check to see if I've found an easier solution to a full reinstall.

But it will be handy to have the LiveUSB anyway... at the very least it will give you access to the files you want to back up, and allow us to run fsck.



You're going to need 2 USB sticks... one to boot Ubuntu from, and another to copy your files to.



Meanwhile...
I'm looking into creating another user on your AA1, so the new user has its own  home folder and therefore its own .ICEauthority file.
« Last Edit: September 17, 2011, 01:34:42 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #18 on: September 17, 2011, 01:37:21 am »
Thanks very much once again.

I'll post back tomorrow once I have a bootable drive working. ADSL is a bit slow, so it will take me a while to downlaod necessary files!

Cheers,

Tony

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #19 on: September 17, 2011, 01:41:38 am »
No problem... see you tomorrow then :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #20 on: September 17, 2011, 02:15:39 pm »
OK, how do you want to play this ? .. here's the options:-

a) (may or may not work) see if running fsck from the Ubuntu LiveUSB will sort out the file system

b) (may or may not work) Edit a file to get the AA1 to prompt for a logon/password .. create a "newuser" account and add it to the same groups as the "user" account .. reboot to the "newuser" account (from what I gather on the AA1 not all services will work in the newuser account, but doesn't really matter) .. move /home/user to /home/user.backup .. delete the original "user" account .. recreate the "user" account with the original UID .. add the "user account back to the same groups it was originally in .. reboot to the "user" account .. copy your files from /home/user.backup to /home/user .. test everything works .. remove the newuser account .. delete the /home/user.backup directory .. set the system back to not prompting for a loon/password

c) (unless there is a problem with the drive, this should work) copy your user files to a USB stick, then reinstall Linpus Lite

d) (unless there is a problem with the drive, this should work) copy your user files to a USB stick, then install a more up to date Linux distribution, such as Ubuntu, or Xubuntu

While you're thinking... can you send the output from:
Code: [Select]
id user
« Last Edit: September 17, 2011, 02:17:32 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #21 on: September 17, 2011, 08:31:43 pm »
Hi Mark,

Output from id user as follows:
Code: [Select]
uid=55(user) gid=500(user) groups=500(user),10(wheel)

Thanks for the pen drive resources, was much more straightforward to create than I was expecting  :)
I have booted from the pen drive, could you tell me how I direct fsck to the internal drive please. Do I just need to run exactly the last set of commands you posted last night? Sorry, feeling out of my depth again. Tried the man page for fsck, but it isn't clear to me what I have to do.

After that, I'm certianly willing to have a go at creating a new user and if all else fails I can reinstall with the AA1 image I downloaded last night and if that doesn't work, fall back will be the latest version of Ubuntu I guess.

Thanks,

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #22 on: September 17, 2011, 08:35:51 pm »
Can you send the output from:
Code: [Select]
sudo fdisk -l

run from the liveUSB (Ubuntu) terminal
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #23 on: September 17, 2011, 08:50:58 pm »
 Just occurred to me that I can now connect the netbook to the net and cut and paste output directly  ::)

Code: [Select]
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       14462   116165983+  83  Linux
/dev/sda2           14463       14593     1052257+  82  Linux swap / Solaris

Disk /dev/sdb: 4207 MB, 4207935488 bytes
255 heads, 63 sectors/track, 511 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0d0c0b0a

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         511     4104576    b  W95 FAT32

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #24 on: September 17, 2011, 08:56:24 pm »
OK, reboot to the LiveUSB (important to make sure no drives are mounted) then without doing anything else that may mount a drive... open a terminal and enter:

Code: [Select]
sudo fsck /dev/sda1

When it's done, and you are back at an $ prompt

Reboot to the AA1's internal drive, and see what happens.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #25 on: September 17, 2011, 09:13:42 pm »
I have a had alot of messages saying 'Deleted inode nnnnn has zero dtime. Fix,y>?' To which I have said yes to. The utility is on pass 2 and I now have a message that states:

Entry '.ICEauthority' in /home/user (2637826) has deleted unused inode 2640585. Clear,y.?

Thought I had better point that out and ask if I should respond yes to it, as it seems pertinent?

Thanks

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #26 on: September 17, 2011, 09:19:43 pm »
Hmm.... I'd say NO at least this time... but I'm guessing the file system is too screwed to fix, and no matter what you choose it isn't going to work.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #27 on: September 17, 2011, 09:23:42 pm »
Thanks for the advice.

Immediately after there was anotehr message that says:
Entry 'saved_state' in /home/user/.gconfd (2638036) has deleted/unused inode 2640583. Clear<y>?

Should I answer no to all such messages?

ta

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #28 on: September 17, 2011, 09:30:27 pm »
Do you think it isn't worth continuing with this tactic and I should concentrate on recovering files and trying the recovery?

Offline teebee

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 0
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Linpus Lite messed up file system
« Reply #29 on: September 17, 2011, 09:33:12 pm »
OK, I said no and it has asked to fix  'Free inode count wrong for group #nnn ... '

I said yes to all of those and am back to $ prompt, but I got a message at the end that said Warning: File system still has errors.


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal