LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2005, 09:20 PM   #1
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
accessing hdb after reinstall


As a result of this, I am reinstalling slackware 10.1.
During the previous install I created 2 partitionons on hdb and I downloaded some files on the first partition, it was known as /extra1.
During the reinstall I didn't rerun fdisk and I didn't touch those partitions when I recreated swap and / on hda. Now, the 2 partitions on hdb, /extra1 and /extra2 are no where to be found. They weren't in fstab, so I simply edited them in. But I still can't cd to /extra1 or /extra2, either as user or as root.
Code:
bash-3.00# whoami
root
bash-3.00# fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         250     2008093+  82  Linux swap
/dev/hda2   *         251        4866    37078020   83  Linux
bash-3.00# fdisk -l /dev/hdb

Disk /dev/hdb: 30.0 GB, 30000000000 bytes
255 heads, 63 sectors/track, 3647 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1825    14659281   83  Linux
/dev/hdb2            1826        3647    14635215   83  Linux
bash-3.00# 
bash-3.00# cat /etc/fstab
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                reiserfs    defaults         1   1
/dev/hdb1        /extra1          reiserfs    defaults         1   2
/dev/hdb2        /extra2          reiserfs    defaults         1   2
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
bash-3.00# 
bash-3.00# cd /extra1
bash: cd: /extra1: No such file or directory
bash-3.00# cd /extra2
bash: cd: /extra2: No such file or directory
bash-3.00#
Maybe my fifth column needs to be 0 for those two entries, or something.
(note: the above stuff was copied and pasted after a reboot)

How can I get back at the files I downloaded to /extra1 without reinstalling and re-running fdisk and wiping out the files there and downloading them again?

Thanks
 
Old 04-23-2005, 09:49 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
i think you have to make some mountpoints first.

just do ( as root ) :

#mkdir /extra1
#mkdir /extra2

and then :

#mount /extra1 /extra2

when you reboot, they will be mounted auto.
edit : but there's no need for a reboot now .

egag

Last edited by egag; 04-23-2005 at 09:50 PM.
 
Old 04-23-2005, 10:04 PM   #3
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Hey, that worked, except I had to explicitly:
mount /dev/hda1 /extra1
mount /dev/hda2 /extra2

I rebooted anyway just to be sure.

I guess I was expecting fstab to know about the previously mounted mount points and somehow just remount them or I just had my head up my.. uh... n/m

Thanks.
 
Old 04-23-2005, 10:10 PM   #4
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Original Poster
Rep: Reputation: 47
Interestingly, I ran 'ls /' and I see that /extra1 and /extra2 have retained the user and group setting that I had chown'ed and chgrp'ed to previously, rather than root root.
 
  


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
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Accessing files on hdb from hda mimsmall Linux - Newbie 4 02-10-2004 12:43 PM
hdb drive RRepster Slackware 2 04-23-2003 06:44 PM
format hdb??? pk21 Linux - Newbie 1 11-20-2002 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 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