LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2009, 05:37 PM   #1
Mail2me
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: Mint 13
Posts: 13

Rep: Reputation: 0
Mayday, I need to fix fstab, pls help!


I added new SATA drive to Suse10.3 box with existing IDE and SATA HDD. So the system booted up with new SATA detected as /hdb, but with lost old SATA that was /hdb previously. I mounted this new SATA HDD, no probs. After reboot I found old SATA disappeared from fstab, I mounted it as /hdc1 and then added it into fstab. However Suse didn't like it and stopped booting with an error message related to fstab. So I guess I have to edit fstab by vi (?), and then somehow get old SATA drive back, I can't afford to lose its stuff... Pls drive me from here...
 
Old 01-19-2009, 05:57 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
What exactly is the error you get?

I would suggest you post the output of fdisk -l and the fstab file contents.
 
Old 01-19-2009, 06:05 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Hi,

Boot from a live cd (knoppix, puppy, dsl)
and change fstab
 
Old 01-20-2009, 03:29 AM   #4
Mail2me
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: Mint 13
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
What exactly is the error you get?

I would suggest you post the output of fdisk -l and the fstab file contents.
I was able to fix fstab and added last line for sdc1 - my old SATA HDD which I would like to see again:

/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part3 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD400EB-00JWD-WCAJA1040738-part1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part7 /mydownload ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part5 /roz1backup ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD6401AALS-_WD-WMASY5113763-part6 /video ext3 acl,user_xattr 1 2
/dev/sdc1 ext3 defaults 1 2

However I still can't see it,

fdisk -l:

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00096d13

Device Boot Start End Blocks Id System
/dev/sda1 1 192 1542208+ 82 Linux swap / Solaris
/dev/sda2 * 193 2078 15149295 83 Linux
/dev/sda3 2079 4865 22386577+ 83 Linux

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b298d

Device Boot Start End Blocks Id System
/dev/sdb1 1 77825 625129281 f W95 Ext'd (LBA)
/dev/sdb5 1 41774 335549592 83 Linux
/dev/sdb6 41775 62661 167774796 83 Linux
/dev/sdb7 62662 77825 121804798+ 83 Linux

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 9729 78148161 7 HPFS/NTFS


I tried to mounted it:
# mount /dev/sdc1 mnt/sdc1
mount: mount point mnt/sdc1 does not exist

Pls drive me from here...
 
Old 01-20-2009, 03:33 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
mount /dev/sdc1 mnt/sdc1
should be

Quote:
mount /dev/sdc1 /mnt/sdc1
make sure the mount point exist
mkdir /mnt/sdc1
 
Old 01-20-2009, 03:54 PM   #6
Mail2me
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: Mint 13
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
should be



make sure the mount point exist
mkdir /mnt/sdc1
Yep, you're right, many thanks, also I had to change the last line in fstab from one above, not sure why the first version didn't work.
This one worked OK:
/dev/sdc1 /mnt/sdc1 ext3 defaults 1 2
 
  


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
bad /etc/fstab How can I save changes during fix file system FEDORA John Sorkin Linux - Distributions 11 06-25-2012 03:43 PM
Can't fix this checksum error ! Binary File ! My VERY FIRST Question ! help pls !!!! Zaher Programming 1 03-20-2006 09:35 PM
Mayday Mayday w5uc Linux - Newbie 7 04-15-2005 07:25 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
How to fix fstab, when the problem is with the root entry oudent Linux - General 8 07-20-2002 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:06 PM.

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