LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-01-2012, 05:16 AM   #1
scribesyd
Member
 
Registered: Mar 2012
Location: Antartica/penguin trainer
Distribution: Slacko puppy's so cute.
Posts: 39

Rep: Reputation: Disabled
M y head hurts, is sudo necessary just to install debian manually.


Well it's about 3 weeks now been trying to install debian 6.04 squeeze,

dd if=debian-*-netinst.iso of dev/sdb1 doesn't work no such directory, well i mentioned that simply because people keep stating it's easiest way to mount iso on usb stick with boot image.

So while that failed i searched for other alternatives but when i simply request for /dev/sdb1 or even for unmounting is denies me access. while i can use fdisk to partition usb stick but results in errors.

df -k /dev/sdb1 works fine to point.

i try to keep away from e2fsck until i have reason using it.

but this dam sudo command functions like debilitating disease, if you asked me use it simply to gain access too files then fine!

Why hell do i even need it. while im oblivious to even knowing slacko puppy's password apart from user name being "root"

But all im trying to do is squeeze debian on to my usb stick manually while ignoring bootin or pendrive. i've encountered serious issues with those while partly being blame as to why im back to drawing board.


So do i even need sudo. 4 hours ago that wasn't even on my mind until urxvt limited me access (sdb1)
 
Old 05-01-2012, 05:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
a non privileged user can't write directly to a block device, so if you're not root, you need some other method to reach root level access to the stick. and sudo is one such way. Sudo is great. if you don't understand the security model, that's your problem, not the systems.

Note that this is, of course, nothing at all to do with installing debian...
 
Old 05-01-2012, 06:00 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Debian doesnt use 'sudo' by defualt, and its not needed. The debian standard way is to use 'su'.

I dont know why you would even try to setup sudo on debian....have you made the mistake of trying to use ubuntu commands (which does use 'sudo' by defualt) in debian?
 
Old 05-02-2012, 12:19 AM   #4
scribesyd
Member
 
Registered: Mar 2012
Location: Antartica/penguin trainer
Distribution: Slacko puppy's so cute.
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cascade9 View Post
Debian doesnt use 'sudo' by defualt, and its not needed. The debian standard way is to use 'su'.

I dont know why you would even try to setup sudo on debian....have you made the mistake of trying to use ubuntu commands (which does use 'sudo' by defualt) in debian?
Su -

Or

sudo

Makes same results. denied.

Well you explain that to people who recommend best ways installing debian. sudo this sudo that. su - this unfortunately same result unfolds.

iv'e mounted debian to 9 cds and non of them even install on installation nothing but errors, or corruptions.

puppy may have it's faults but by dam it's flawless on installation one of best distros out there sadly it's best used as back up.

do i have to wipe my operating system clean just to acces stupid usb stick sighs.

Last edited by scribesyd; 05-02-2012 at 01:06 AM.
 
Old 05-02-2012, 03:09 AM   #5
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
what are you trying to do? dd is a bytewise copy of a drive or partition what you're trying to do with "dd if=debian-*-netinst.iso of dev/sdb1" is unclear to me as well, but it would never work, if it says no such directory it's probably talking about the syntax if you ask me. with dd the if means input file and of output file, you're trying to copy the file probably to stdout. Try to make clear what the problem is, if I would try to answer it now I'd suggest using the right syntax for dd. The right syntax is to run "dd if=[input file] of=[output file]".

Mounting a drive is to attach the drive to your file structure so you can actually use the data on there and cd into it, the command for this is "mount /dev/sdb1 /mnt/usbdrive"

And then there is the sudo command you're trying to use... sudo stands for "super user do" in debian you should just use "su root" or "su -" or "su" which are all the same as far as I know. Give your root password and then run the command once you're logged in. sudo is just a fancy way to not use the root account for security purposes.
 
Old 05-02-2012, 03:29 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,479

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
To use the debian hybrid installer image you need to write it to the usb device /dev/sdb NOT /dev/sdb1 which is a partition on the drive.

You should be root (which I think you are anyway in puppy) and the drive should NOT be mounted.

Code:
# dd if=your-netinst-iso of=/dev/sdb
NOTE: When using dd it pays to make VERY sure of your syntax and target names.

Last edited by descendant_command; 05-02-2012 at 03:31 AM.
 
Old 05-02-2012, 03:37 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Quote:
Originally Posted by scribesyd View Post
Well you explain that to people who recommend best ways installing debian. sudo this sudo that. su - this unfortunately same result unfolds.
I have never seen any guide to installing debian use 'sudo'.

If you mean this sort of thing-

http://ask.debian.net/questions/4f64...cfef67a9009358

That isnt an install guide, and you've used the wrong command as well.

It does should how you could give us more information. Just saying 'it doesnt work' wont help, posting the outputs you get (including error msgs) might give people better chance to help you.

You do know that dding a .iso to a USB stick will just copy it there, it doesnt 'install' it at all.

Quote:
Originally Posted by scribesyd View Post
iv'e mounted debian to 9 cds and non of them even install on installation nothing but errors, or corruptions.
Have you checked your .isos for corruption before burning them?

Last edited by cascade9; 05-02-2012 at 03:39 AM.
 
Old 05-02-2012, 03:50 AM   #8
scribesyd
Member
 
Registered: Mar 2012
Location: Antartica/penguin trainer
Distribution: Slacko puppy's so cute.
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cascade9 View Post
I have never seen any guide to installing debian use 'sudo'.

If you mean this sort of thing-

http://ask.debian.net/questions/4f64...cfef67a9009358

That isnt an install guide, and you've used the wrong command as well.

It does should how you could give us more information. Just saying 'it doesnt work' wont help, posting the outputs you get (including error msgs) might give people better chance to help you.

You do know that dding a .iso to a USB stick will just copy it there, it doesnt 'install' it at all.



Have you checked your .isos for corruption before burning them?
Well any ways they must be bad sites then.

So it seems zcat boot,img,gz > /dev/sde1 installs boot.

Oddly it works flawlessly but strangely didn't work on ubantu odd,

Now i gotta work out how to mount iso file2 usb on command???

P.s i'll stay away from sudo for now. it reminds me when i had to type my password in apache few years back. looking back then it was pain now nope

Last edited by scribesyd; 05-02-2012 at 03:54 AM.
 
Old 05-02-2012, 05:56 AM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
http://www.zeitoun.net/articles/debian-squeeze-usb/start

ignore the repos in the above you can get the correct files from debian.org

but the steps are correct.
 
Old 05-02-2012, 06:42 AM   #10
scribesyd
Member
 
Registered: Mar 2012
Location: Antartica/penguin trainer
Distribution: Slacko puppy's so cute.
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by craigevil View Post
http://www.zeitoun.net/articles/debian-squeeze-usb/start

ignore the repos in the above you can get the correct files from debian.org

but the steps are correct.
i cant use sudo sorry, is there another way

Plus those links are broken, tried that site before no luck

Last edited by scribesyd; 05-02-2012 at 06:43 AM.
 
Old 05-02-2012, 06:51 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,676

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
Are you saying that you are running Puppy, logged in as root, and trying to create a Debian install on a USB stick using an ISO image and dd?
If so then this is nothing to do with Debian. You should confirm which device the USB stick is showing up as and use the command descendant_command gave you, changing /dev/sdbif necessary to whatever your USB stick is (in my case it's /dev/sdf).
Edit: just noticed craigevil's post and you could follow those instructions but just miss sudo off the beginning of each line as it is not needed if you are running as root.

Last edited by 273; 05-02-2012 at 06:58 AM.
 
Old 05-02-2012, 09:03 AM   #12
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I still don't get, what are you trying to achieve?
You are running Puppy, does Puppy uses sudo? Or does it have a different way to do things?
Are trying to install an Debian live in the USB stick? Or are you trying to create an CD/USB installer?
And finally why using DD to do such simple task, live is complicated enough why make it worse?

If is a live session what you want, then get it here and burn into a cd, or use Yummy(or similar tool, you can find it here) to install in your USB stick.

I hope this helps.

Regards
 
Old 05-02-2012, 08:04 PM   #13
scribesyd
Member
 
Registered: Mar 2012
Location: Antartica/penguin trainer
Distribution: Slacko puppy's so cute.
Posts: 39

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ukiuki View Post
I still don't get, what are you trying to achieve?
You are running Puppy, does Puppy uses sudo? Or does it have a different way to do things?
Are trying to install an Debian live in the USB stick? Or are you trying to create an CD/USB installer?
And finally why using DD to do such simple task, live is complicated enough why make it worse?

If is a live session what you want, then get it here and burn into a cd, or use Yummy(or similar tool, you can find it here) to install in your USB stick.

I hope this helps.

Regards
I appreciate all the advice every one has given thanks. i prefer to do it manually then with let's say (unetbootin) or (pen drive universal installer) since i have encountered more errors written and never been successful probably compared to others.

I established connection to usb, for some reason each time i unmount device it changes it's directory sdb1, sbd1, sdc1, ect dsmg lists my usb as installed so that's fine in command.

Right now i have all files mounted on usb stick except debian 6.04 iso file since it's hybrid and designed for simplistic ease when installing from what ive heard.

For simple solution i don't wish to complicate it as im after manual install so any command would be healpful

DD command?

su - optional?

cp <path/to/iso/image> /mnt

Im gathering in here people don't do it this way

Thi site did help a bit: http://linux.koolsolutions.com/2009/...rom-usb-drive/ but not enough

Last edited by scribesyd; 05-02-2012 at 08:41 PM.
 
Old 05-02-2012, 09:51 PM   #14
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
4.3.*Preparing Files for USB Memory Stick Booting - http://www.debian.org/releases/stabl...h04s03.html.en

Debian Wiki - http://wiki.debian.org/DebianEeePC/H...ndardInstaller

You need to be in the directory the iso is in or you need to use the full path.
 
Old 05-03-2012, 02:09 AM   #15
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
@scribesyd If you want any of us here to help you better it is important that you explain better what it is you are trying to do.

I think it's something not too complicated. Are you trying to use the usb drive to install debian on so you can use debian with only the usb stick in the computer? Or are you trying to create a usb drive to install debian with?

We are all trying to help but it is hard to understand what you are actually trying to do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to manually install a debian file for debian? tekipepi Linux - Newbie 5 09-17-2009 08:19 AM
my head hurts mopatop Linux - Newbie 10 01-01-2009 08:40 AM
Manually pacthing debian aquaboot Debian 4 07-01-2008 09:48 PM
simple variable problem that makes me head hurts :] itz2000 Linux - Newbie 4 11-19-2006 11:13 AM
debian DHCP/manually settings pe2338 Linux - Networking 0 08-14-2003 04:38 AM


All times are GMT -5. The time now is 10:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration