partitions

Dave Andruczyk djandruczyk at yahoo.com
Tue Sep 16 23:07:23 EDT 2003


you can also use "fdisk -l /dev/hda"  it'll print out a list like below:
sudo fdisk -l /dev/sda
Password:

Disk /dev/sda: 18.1 GB, 18113808896 bytes
64 heads, 32 sectors/track, 17274 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       250    255984   83  Linux
/dev/sda2           251       650    409600   82  Linux swap
/dev/sda3           651       800    153600   83  Linux
/dev/sda4           801     17274  16869376    5  Extended
/dev/sda5           801      1200    409584   83  Linux
/dev/sda6          1201      1600    409584   83  Linux
/dev/sda7          1601      6190   4700144   83  Linux
/dev/sda8          6191     17274  11350000   83  Linux

Note on my linux box I have three SCSI drives with about 11 different mounted
partitions (not including swap).    My case is one of the more extreme types
compared to most (very) simple setups with only 2 partions (/ and swap space)


--- Cyber Source <peter at thecybersource.com> wrote:
> You are probably just trying to mount the wrong partition. type
> "/sbin/fdisk /dev/hda" as root and the type p to see the partitions,
> then type q to exit.
> When you have the correct partitions that you want to mount, like your
> windows partition, you can then just type mount "/dev/hda? /mnt/mount" ,
> making sure you actually have an /mnt/mount location. If you want to add
> it to your /etc/fstab, a line like "/dev/hda? /mnt/mount vfat
> umask=0,users 0 0" would work. The umask=0 will mount it with no
> permissions. And that is if it is a fat partition. The 0's mean it won't
> be used in a dump scenario and won't be checked on boot. Remember that
> you still need the mount location and that will mount it on boot and if
> you dont want to reboot after you make the change to the fstab file, you
> can then just type " mount /mnt/mount". Let me know how this works for
> you.
> On Tue, 2003-09-16 at 14:54, Mark Robson wrote:
> 
> > Well, it will be there, then.  Even if I get this
> > solved meantime (LOL).  I guess you'll have monitors
> > to use, so I'll need to bring the kbd/mouse and box? 
> > 
> > Meantime, I seem to have lied when I said I could see
> > both partitions on the 80gb drive.  When I go: 
> > 
> > mount -t vfat /dev/hda1 /mnt/win 
> > 
> > I can get a view of the c: drive where my o/s is
> > installed, and the source for the files I want to
> > rescue.  I 'thought' I could just modify that to : 
> > 
> > mount -t vfat /dev/hda2 /mnt/winD 
> > 
> > to make the same view true for my D: partition on that
> > same drive.  I have already created /mnt/winD. 
> > Instead, I get this complaint: 
> > 
> > mount: wrong fs type, bad option, bad superblock on
> > /dev/hda2, 
> >        or too many mounted file systems 
> >        (aren't you trying to mount an extended
> > partition, 
> >        instead of some logical partition inside?) 
> > 
> > I don't remember making hda2 NTFS, but is that likely
> > the problem?  How would I determine that? 
> > 
> > Is a 'bad superblock' as bad as it sounds?  Can I
> > determine that (considering my newbie-ness)? 
> > 
> > I am trying to mount an extended partition, not a
> > logical partition insde; maybe I just need a different
> > option?  
> > 
> > I need to learn how to edit fstab to automate this
> > anyways, don't I.  Another of the skills I haven't yet
> > picked up.  I wish I had the time to take classes to
> > get this down.  I'm the proverbial one who knows just
> > enough to get into trouble.  
> > 
> > Mark 
> > 
> > 
> > 
> > 
> > --- Cyber Source <peter at thecybersource.com> wrote:
> > > Anytime. You should try to make next weekends
> > > meeting (Sunday 1:00),
> > > maybe you could even bring the box and we could have
> > > at it?
> > > On Mon, 2003-09-15 at 17:21, Mark Robson wrote:
> > > 
> > > > Ahh... the cure for all ills... I remember saying
> > > > exactly that.  Couldn't understand the open source
> > > > world's disdain for MS.  M$?  Eyes wide shut,
> > > indeed.
> > > > 
> > > > Will try your idea with a small twist - I can see
> > > both
> > > > part'ns on the 80gb drive (yes, FAT) and might
> > > just
> > > > move the C: into the D: as a directory and then
> > > > proceed as you describe.  Just enough pain to make
> > > me
> > > > remember the lesson - those who do not learn to
> > > backup
> > > > are doomed to reinstall everything.  
> > > > 
> > > > Will be a day or two before I am able to get at
> > > this. 
> > > > Looking forward to it.
> > > > 
> > > > BTW, I'm determined to learn enough to show my
> > > > teenagers what they can do with Linux - Yahoo/GAIM
> > > > will help there, too.  
> > > > 
> > > > Thanks,
> > > > 
> > > > Mark
> > > > 
> > > > 
> > > > --- Cyber Source <peter at thecybersource.com> wrote:
> > > > > I do this all the time because alot of my
> > > clients
> > > > > decide that xp is a
> > > > > cure-all for there ills and just install it,
> > > only to
> > > > > find out that there
> > > > > is no support for ISA hardware, etc and one guy
> > > > > actually lost all
> > > > > functionality of his previous m$ office stuff
> > > > > because he had not
> > > > > activated it yet! This pissed him off so much,
> > > he
> > > > > wanted me to save all
> > > > > his data and put him back on win98. I usually
> > > back
> > > > > up everything and
> > > > > since you tell me that you can mount this xp
> > > side
> > > > > from Linux, I am going
> > > > > to assume that xp is on a fat partition (versus
> > > > > ntfs), so this should be
> > > > > easy. If you have room somewhere for this, make
> > > a
> > > > > zip or tar the xp
> > > > > side. Keep in mind that windows (at least 98)
> > > cannot
> > > > > see a file size
> > > > > larger than 4gb. Once backed up, you can redo
> > > your
> > > > > windows side to
> > > > > whatever and restore the data. Any data you had
> > > > > saved can be reused, if
> > > > > it is not environment dependent (needs to be in
> > > > > registry, etc) All you
> > > > > doc's, mp3's, whatever should be fine. 
> > > > > In my dual boot scenario's, I backup the whole
> > > > > windows side to one file,
> > > > > keep in on the Linux side (don't have to worry
> > > about
> > > > > file size) and then
> > > > > use Gnome's file roller to extract the stuff, or
> > > > > show the clients how to
> > > > > extract files and then move them to the new
> > > windows
> > > > > side. Then when they
> > > > > are sure they have everything, they can delete
> > > the
> > > > > saved file.
> > > > > There would be alot of bumps in the road for a
> > > > > newbie to do this, feel
> > > > > free to keep asking questions.
> > > > > 
> > > > > On Mon, 2003-09-15 at 09:24, Mark Robson wrote:
> > > > > 
> > > > > > I have been having trouble with WinXP
> > > > > > (Ex-productivity?), and wish I'd learned to
> > > > > segregate
> > > > > > all those user-environment related files out
> > > > > before
> > > > > > the @#$($#@
> > > > > >
> > > > >
> > > >
> > >
> > driver-corruption/page-fault/IRQ_not_less_than/circus
> > > > > > started last month.  Now I can't get past the
> > > > > > rebooting during load, cannot reinstall XP,
> > > cannot
> > > > > get
> > > > > > into safe mode.  I've made a real mess of it,
> > > and
> > > > > want
> > > > > > to end the madness.  Irony:  I got into the
> > > mess
> > > > > > because I was adding CDRW so I could BACKUP MY
> > > > > FILES! 
> > > > > > DOH!
> > > > > >  
> > > > > > I have an idea to use Linux as my solution,
> > > and
> > > > > please
> > > > > > advise how this might go;  I have a dual-boot
> > > > > > setup, with RH8 linux installed onto a second
> > > hard
> > > > > > drive.  I'm able to boot into RH8 and mount
> > > the xp
> > > > > > partition.  (RH8 server, with Samba, although
> > > I'm
> > > > > > totally an enduser, not admin.)  Can I sort
> > > out
> > > > > the
> > > > > > important files (*.doc/xls/htm mostly) and put
> > > > > them
> > > > > > aside in the penguin partition, then format
> > > the xp
> > > > > > partition and install 98?  I can see 'how' to
> > > do
> > > > > this,
> > > > > > but here's the point:
> > > > > >  
> > > > > > Does transferring these files from xp to linux
> > > and
> > > > > > back to 98 cause any problems with the
> > > integrity
> > > > > of
> > > > > > the files themselves?  As enduser, not admin,
> > > I'll
> > > > > use
> > > > > > a more gui (Gnome)than command line approach. 
> > > > > Would
> > > > > > not open or operate on the files beyond moving
> > > > > them.  
> > > > > >  
> > > > > > Original idea, which I can't make happen on
> > > the
> > > > > > Win/Loser setup any more, was to move the XP
> > > > > partition
> > > > > > up and create a new partition to install 98
> > > onto. 
> > > > > Was
> > > > > > going to do that after I got the drives backed
> > > up,
> > > > > > never got that far.  I use PartitionMagic, and
> > > it
> > > > > > would do this in win non-destructively.  Is
> > > there
> > > > > any
> > > > > > comparable Linux partition program that is
> > > also
> > > > > > non-destructive?  
> > > > > >  
> > > > > > Other details:
> > > > > > About 2gb of user-environment related files to
> > > > > move.
> > > > > > Three hard drives altogether:
> > > > > > 80gb WD, partitioned into two 40gb windows.
> > > > > > 8gb  Fujitsu, windows single partition
> > > > > > 10gb Maxtor, Linux, RH8 server default
> > > partition
> > > > > > scheme
> > > > > > Celeron p3 400, 384mb, 16mb agp video.
> > > > > > Broadband connection
> > > > > > The machine is part of a home peer2peer
> > > network,
> > > > > but
> > > > > > that is just to share the broadband and
> > > printers. 
> > > > > The
> > > > > > other machines are 98's.
> > > > > >  
> > > > > > Thanks in advance.
> > > > > >  
> > > > > > Mark
> > > > > > 
> > > > > > peter <pvant67 at wnyip.net> wrote:
> > > > > > Sorry for the long absence, it's been
> > > > > strange/terrible
> > > > > > at best here.
> > > > > > 
> > > > > > My comment about partitions: Anything I think
> > > will
> > > > > > matter to me in the 
> > > > > > long run gets a separate partition, esp. /home
> > > and
> > > > > > /usr/local.
> > > > > > 
> > > > > > That's the only reason I've been able to keep
> > > > > > essentially the same user 
> > > > > > environment for so many years (1999-2000) to
> > > > > present.
> > > > > > Back then, I did 
> > > > > > things on a Compaq 486. Now, it is 2 or 3
> > > hardware
> > > > > > systems later, but 
> > > > > > /home hasn't changed much. The contents are
> > > > > similar
> > > > > > but the capabilities 
> > > > > > are greater.
> > > > > > 
> > > > > > The way I do things, the rest of the system is
> > > > > > disposable. You already 
> > > > > > know there's going to be upgrades, betas, etc.
> > > > > /home
> > > > > > isn't disposable - 
> > > > > > its the stuff you spent the last few years
> > > > > creating.
> > > > > > Hence, I never use 
> > > > > > the default partition schemes (I use RH9), and
> > > I
> > > > > > default to a custom 
> > > > > > install in order to preserve this.
> > > > > > 
> > > > > > Hence, I would definitely give /home its own
> > > > > > partition; you can safely 
> > > > > > wipe and re-install the system without
> > > touching
> > > > > it, if
> > > > > > you opt to 
> > > > > > partition it manually.
> > > > > > 
> > > > > > Hope this helps someone - Pete
> > > > > 
> > > > > -- 
> > > > > Cyber Source <peter at thecybersource.com>
> > > > > 
> > > > 
> > > > 
> > > > =====
> > > > 
> > > > Mark Robson
> > > > 
> > > > 
> > > > 
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > > design software
> > > > http://sitebuilder.yahoo.com
> > > 
> > > -- 
> > > Cyber Source <peter at thecybersource.com>
> > > 
> > 
> > 
> > =====
> > 
> > Mark Robson
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> 
> -- 
> Cyber Source <peter at thecybersource.com>
> 

=====
Dave J. Andruczyk

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the nflug mailing list