Boot problem with opensuse 12.1, 64bit some hdd problems and no gui

Heya,

Yesterday the linux part of my dual booting laptop was working fine. I was trying to format a kingston Datatraveller DT108 8GB pen drive using ‘Partitioner’. I made sure to only mark the line saying ‘Kingston DT108’ when trying to format and the max partition size was 7.26gb so I’m fairly sure I formatted the right thing. However something must have gone wrong, because today it won’t boot. There is a couple of lines like ‘/etc/sysconfig/blah/blah/ - no such file or directory’. And then I’m left with a console.

I know its not much to go on, but can anyone help me figure out what I did wrong and how to fix it?

Best regards,

Jacob Collstrup

On 01/26/2012 03:26 AM, Daqar wrote:
>
> Heya,
>
> Yesterday the linux part of my dual booting laptop was working fine. I
> was trying to format a kingston Datatraveller DT108 8GB pen drive using
> ‘Partitioner’. I made sure to only mark the line saying ‘Kingston DT108’
> when trying to format and the max partition size was 7.26gb so I’m
> fairly sure I formatted the right thing. However something must have
> gone wrong, because today it won’t boot. There is a couple of lines like
> ‘/etc/sysconfig/blah/blah/ - no such file or directory’. And then I’m
> left with a console.
>
> I know its not much to go on, but can anyone help me figure out what I
> did wrong and how to fix it?

The only thing we can tell you is to open a terminal and enter the sequence


blah/blah/blah

Ridiculous isn’t it? If you really want help, we must have the exact messages!
Only then will we have any chance to see what happened. From what you say, I
think that you are getting the expected GRUB screen. Is that correct?

Sorry for wasting your time like that, I guess I was hoping it was common thing that needed no more explaining, here is the screen I see, once the computer is done doing its stuff:

[2.662412] sd 6:0:0:0: [sdb] No caching mode page present
[2.662420] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[2.666660] sd 6:0:0:0: [sdb] No caching mode page present
[2.666665] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[2.671785] sd 6:0:0:0: [sdb] No caching mode page present
[2.671790] sd 6:0:0:0: [sdb] Assuming drive cache: write through
doing fast boot
Creating device nodes with udev
udev[249]:failed to execute '/etc/sysconfig/network/scripts/ifup-sysctl'
'/etc/sysconfig/network/scripts/ifup-sysctl lo -o hotplug': no such file or directory
Trying manual resume from /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part1
Invoking userspace resume from /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part1 resume: libgcrypt version 1.5.0
Trying manual resume from /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part1
Invoking in-kernel resume from /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part1
Waiting for device /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part2 to appear: ok
fsck from util-linux 2.20.1
[/sbin/fsck.ext4 (1) --/] fsck.ext4 -a -C0 /dev/sdc2
/dev/sdc2: Recovering journal
/dev/sdc2:clean, 148963/1313280 files, 1628753/5242880 blocks
fsck succeeded. Mounting root device read-write.
Mounting root /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part2
mount -o rw,acl,user_xattr -t ext4 /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part2 /root
[11.403590] udevd[450]: error opening ATTR{/sys/devices/pci0000:00/0000:00:1a.1usb4/4-2/4-2:
1.0/power/level} for writing: No such file or directory
systemd-fsck[803]: /dev/sdc3: Recovering journal
systemd-fsck[803]: /dev/sdc3: clean, 281633/13828096 files 43301749/55280384 blocks
Welcome to emergency mode. Use "systemctl default" or ^D to activate default mode.
Give root password for login;

I tried putting the USB pendrive back in, into the very same port as I used yesterday for formatting, now opensuse boots up normally. I think I set the mounting point for the usb-pen to ‘local’. Is that what I did wrong? How do I undo this?

Best regards,

Jacob Collstrup

USBs may not come into the system at the same point. Just the nature of the beasts. ie if you do not umount a device and then re pug it it may come into a different mount point.

It’s even “worse”. If you pull the USB device off it wiil not mount as the same device, i.e. if it was mounted as /dev/sdb1 and you pull it out, put it back in, it will be /dev/sdc1. So, the original device has not returned, a new device has appeared.

Sooo…what should I do? Reformat it and unmount it, then reboot?

Jacob

On 2012-01-26 21:16, Daqar wrote:
> Code:
> --------------------

> Mounting root /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part2
> mount -o rw,acl,user_xattr -t ext4 /dev/dsk/by-id/ata-ST9250827AS_5RG86SKV-part2 /root
> [11.403590] udevd[450]: error opening ATTR{/sys/devices/pci0000:00/0000:00:1a.1usb4/4-2/4-2:
> 1.0/power/level} for writing: No such file or directory
> systemd-fsck[803]: /dev/sdc3: Recovering journal
> systemd-fsck[803]: /dev/sdc3: clean, 281633/13828096 files 43301749/55280384 blocks
> Welcome to emergency mode. Use “systemctl default” or ^D to activate default mode.
> Give root password for login;
> --------------------

System is booting in emergency mode because it tries and fails to mount or
fsck device ATTR{/sys/devices/pci0000:00/0000:00:1a.1usb4/4-2/4-2:. You
probably have an entry for it in fstab. Edit and comment out or remove (if
you are sure which one it is).

> I tried putting the USB pendrive back in, into the very same port as I
> used yesterday for formatting, now opensuse boots up normally. I think I
> set the mounting point for the usb-pen to ‘local’. Is that what I did
> wrong? How do I undo this?

You created an entry to mount the device you formatted. So edit fstab and
remove that line.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hmm…I don’t know how to edit the fstab or what fstab really is…I tried deleting the partition on the usb pen-drive, reformat it without a mounting point and now my system is back to the way it used to be…I tried it this way because I somehow managed to scroll by your post robin_listas without seeing it…thanks for the help ! Its nice to know there is forum full of help when I mess up my system ! :slight_smile:

Jacob

On 2012-01-26 23:46, Daqar wrote:
>
> Hmm…I don’t know how to edit the fstab or what fstab really is…I
> tried deleting the partition on the usb pen-drive, reformat it without a
> mounting point and now my system is back to the way it used to be…I
> tried it this way because I somehow managed to scroll by your post
> robin_listas without seeing it…thanks for the help ! Its nice to know
> there is forum full of help when I mess up my system ! :slight_smile:

Next time you format an external disk, learn to do it from the command line.

To edit fstab open a terminal, do “su -” then “mc”. If it says that mc is
not installed install it (full name: midnight commander". It is a text mode
file browser. Navigate to directory /etc, then open file “fstab” with F4,
and edit. It has help. Follow your nose.

You don’t like that editor? There are more. Joe, vi, emacs, pico, nano…
all work in text mode, some using the rescue system you got initially.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)