LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-07-2006, 10:19 AM   #1
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Rep: Reputation: 15
wrong mountpoint killed Suse


Hi,

I could not write on my external USB harddisk in suse, since it was formatted in NTFS (I guess). So I backuped the data, and tried to format it in FAT with the partitioning tool in yast. Several attempts did not succed, until finally I formated it first as Reiser, and then as FAT. Unfortunately, I supplied a wrong mountpoint, though. I typed in /home/tobias/Desktop
I realised that what I did was wrong, I could not change it back though, Suse would not allow me access to the harddrive.

So I thought a restart could do the job, and now I am stuck in a black window with a command prompt, asking me for my root password. After typing it in, I am somehow not logged in as linux nor as tobias, and startx does not work.

Help, anyone?
 
Old 03-07-2006, 11:23 AM   #2
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
Here is the error message I get:

fsck failed for at least one file system (not /) please repair manually and reboot. The root file system is already mounted read-write

I am then asked to supply my root-password. The following command prompt looks like this:

(none):~#

if I type in "fsck" and then "yes" I get this message:

fsck.reiserfs /dev/hda2/ failed (status 0x10) run manually

I belive hda2 is my / partition. I also have another hda partition for windows, same physical drive. My external drive was always mounted as sda1, if I remember correctly.

Please help. Have important data backed up now on my suse partition and cannot afford fresh install (which would probably take less time).
I am running Suse10.0 by the way.
 
Old 03-07-2006, 12:55 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Is this correct: You had SuSE installed and running on your PC. You wanted to connect a new USB drive, and after formatting it you edited your fstab but specified the wrong mountpoint.

If that's accurate, just disconnect the USB drive and reboot. The system will not be able to mount the USB drive incorrectly (because it's not connected at all) and your normal system should be restored. From there, just edit fstab again to make the correction. Good luck with it
 
Old 03-07-2006, 03:36 PM   #4
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
Hi,
I did not edit fstab. Upon plugging in my NTFS formated external hard drive, it appeared in suse10 under /media/backup (<-- name of the drive assigned by windows). I could access it and copy data from the external drive to my suse 10 partition. So I thought it was already mounted, no need to edit fstab.
Writing to the drive from Suse did not work, however. I thought this was because it is formated in NTFS. Therefore I tried to format it to FAT with patition tool under Yast (after I backed up the data on the external drive).
I tried several times to delete the ntfs partition and format it as FAT, and in the end somehow succeded. I then set a mount point (also in the partition tool under yast) as /home/tobias/Desktop, believing this would put an icon on my desktop whenever the drive is connected. I realised my mistake and tried to undo this mount point, format it again, but did not succed.
Then I restarted the machine and now, with or without the drive connected, I get the error described above.
Hope this helps
Tobias
 
Old 03-08-2006, 02:34 AM   #5
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
by typing in init 5 at the command prompt, I could start the graphical system and login. Besides that many drivers are not loaded now (no sound, no internet), my external harddisk does not appear anymore as device when I type fdisk -l as root.
How can I get my external harddisk back? How can I check if the usb drivers are loaded?

Thanks
 
Old 03-08-2006, 02:40 AM   #6
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
typing lsusb as root with the external drive connected results in this output:

bus 004 device 001: id: 0000:0000
bus 003 device 001: id: 0000:0000
bus 002 device 001: id: 0000:0000
bus 001 device 003: id: 04b4:6830 Cypress semiconductor corp. usb-2.0 ide adapter
bus 001 device 001: id: 0000:0000

how can i format the drive, how can i set a mount point? is it detected correctly?
 
Old 03-08-2006, 02:48 AM   #7
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
in /etc/fstab I have an entry for the disk. It goes as follows:

/dev/sda/ /home/tobias/Desktop reiserfs defaults 1 2

it must have been put the while I fiddled around in the partitioning tool in yast. would it help to edit this?

Sorry for bombarding you with questions. I just would like to have my harddisk back.
 
Old 03-08-2006, 02:52 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
You could try to boot from your installation CD and run the automatic repair tool. This should repair your fstab. I know, you think you haven't changed it, but this is something the partitioner does. Be sure the USB drive is unplugged. See http://en.opensuse.org/SDB:YaST_System_Repair for more info.

EDIT: If you want to edit this file manually, you may need to remount the filesystem writable. It sounds like a good idea to take out this entry. You shouldn't mount a complete device (sda). Always use the partitions numbers (e.g. sda1). But the automatic repair should do the job.

Last edited by abisko00; 03-08-2006 at 02:58 AM.
 
Old 03-08-2006, 03:15 AM   #9
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
Hi abiskoOO,

I unplugged the usb device, as root typed "vi /etc/fstab" and manually deleted the entry for sda, rebooted, and bingo. Suse loads normally without errors. So no need for a system restore, I guess.

Upon plugging in the drive again, it is recognised and appears as /media/usbdisk. In the partitioning tool in yast, it is listed as sda with an active partition sda1 formated in Linuxnative. I cannot write to the drive as default user, but as root yes.
the drive has no entry in fstab.

Now, questions:
Am I back to where I started?
How can I format the drive in FAT, so it is readable by both windows and Linux?
How can I make an icon of the drive appear on the Desktop once it is connected in Linux?

Cheers
Tobias
 
Old 03-08-2006, 03:43 AM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I always use command-line tools: cfdisk /dev/sda to create partitions and set the partition type, mkdosfs -F 32 /dev/sda1 to create the filesystem. You don't need to set any mountpoints, as you see.
 
Old 03-08-2006, 05:30 AM   #11
Tobitas
Member
 
Registered: Feb 2006
Location: Barcelona
Distribution: SuSE 10.0, xubuntu breezy
Posts: 47

Original Poster
Rep: Reputation: 15
Works fine now!

In yast-system-partitioner I deleted the /sda1 partition of the /sda device. Then I created a new partition, formated it as FAT and ticked in the Fstab option "do not mount at startup" and "mountable by user". I did not define any mount point.
After pressing ok, the device is being formated, I then restarted the machine (just for the sake of it) and all is fine. The partition is visible as /media/usbdisk, I can read and write to it as normal user.
In /etc/fstab the usb device with its FAT partition is not visible.

How can I make the drive appear as desktop icon once it is connected (MAC style)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
killbill SLAX killed my SuSE boot up! Siljrath Linux - General 4 02-20-2006 09:15 PM
Killed Fedora 4 by removing kernel version wrong way. rvicker Linux - Newbie 9 01-13-2006 03:41 PM
Latest Suse 9.2 updates has killed mozilla apps randrake Linux - Software 0 05-12-2005 07:32 PM
i think Suse 9.1 killed my hard drive msclman99 Linux - Newbie 16 11-10-2004 02:16 PM
selecting wrong mountpoint lesthanjakejohn Linux - General 1 10-18-2003 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration